|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.stratos.common.util.ClaimsMgtUtil
public class ClaimsMgtUtil
| Constructor Summary | |
|---|---|
ClaimsMgtUtil()
|
|
| Method Summary | |
|---|---|
static String |
getAdminUserNameFromTenantId(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
Method to get the name of the admin user given the tenant id |
static String |
getClaimfromUserStoreManager(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId,
String claim)
Get the claims from the user store manager |
static String |
getFirstName(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
gets first name |
static String |
getFirstNamefromUserStoreManager(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
Gets first name from the user store manager |
static String |
getLastName(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
gets last name |
static String |
getLastNamefromUserStoreManager(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
Gets last name from the user store manager |
static String[] |
getNames(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
Gets the first name of a tenant admin to address him/her in the notifications |
static String[] |
getNamesfromFullName(org.wso2.carbon.user.core.service.RealmService realmService,
String fullName)
Let's split the givenname into two. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClaimsMgtUtil()
| Method Detail |
|---|
public static String getFirstName(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
throws Exception
realmService - realmServicetenantId - tenant id
Exception - if error in getting the first name
public static String getLastName(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
throws Exception
tenant - tenanttenantId - tenant id
Exception - if error in getting the last name
public static String[] getNames(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
throws Exception
tenant - tenanttenantId - tenant Id
Exception - if unable to retrieve the admin name
public static String getAdminUserNameFromTenantId(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
throws Exception
tenantId - tenant id
Exception - UserStoreException
public static String[] getNamesfromFullName(org.wso2.carbon.user.core.service.RealmService realmService,
String fullName)
fullName - full name of the tenant admin
public static String getClaimfromUserStoreManager(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId,
String claim)
throws org.wso2.carbon.user.core.UserStoreException
tenant - tenant informationtenantId - tenantIdclaim - claim name
org.wso2.carbon.user.core.UserStoreException - exception in getting the user store manager
public static String getFirstNamefromUserStoreManager(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
throws org.wso2.carbon.user.core.UserStoreException
tenant - tenanttenantId - tenant id
org.wso2.carbon.user.core.UserStoreException - , if error in getting the claim GIVEN_NAME
public static String getLastNamefromUserStoreManager(org.wso2.carbon.user.core.service.RealmService realmService,
int tenantId)
throws org.wso2.carbon.user.core.UserStoreException
tenant - tenanttenantId - tenant id
org.wso2.carbon.user.core.UserStoreException - , if error in getting the claim SURNAME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||