|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.livecycle.rca.common.utils.UMUtils
public class UMUtils
utility wrapper over user manager apis
Field Summary | |
---|---|
static String[] |
allUMPermissions
Permissions required for creating and managing users. |
Constructor Summary | |
---|---|
UMUtils()
|
Method Summary | |
---|---|
static Group |
getGroup(DirectoryManagerServiceClient directoryManagerService,
String domainName,
String groupName)
|
static List |
getGroupMembers(DirectoryManagerServiceClient directoryManagerService,
String domainName,
String groupName)
|
static Principal |
getPrincipalFromDomainAndCanNm(String domain,
String canonicalName)
Gets active principal identified by domain and canonical name |
static Principal |
getPrincipalFromOid(String oid)
Get Principal given the user's OID |
static String |
getPrincipalName(String oid)
Returns common name of the principal given the user's OID |
static User |
getUser(DirectoryManagerServiceClient directoryManagerService,
String domainName,
String userId)
|
static User |
getUserFromDomainAndCanNm(String domain,
String canonicalName)
Finds a user given domain and canonical Name. |
static User |
getUserFromOid(String oid)
Get User given the user's OID |
static boolean |
hasInviteUserPermission(com.adobe.idp.dsc.clientsdk.ServiceClientFactory scf,
String principalOid)
To check if the user has invite user permissions or not. |
static boolean |
isAdministrator(com.adobe.idp.dsc.clientsdk.ServiceClientFactory scf,
String principalOid)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] allUMPermissions
Constructor Detail |
---|
public UMUtils()
Method Detail |
---|
@Deprecated public static boolean isAdministrator(com.adobe.idp.dsc.clientsdk.ServiceClientFactory scf, String principalOid) throws UMException
UMException
public static boolean hasInviteUserPermission(com.adobe.idp.dsc.clientsdk.ServiceClientFactory scf, String principalOid) throws UMException
scf
- service client factoryprincipalOid
- UM OID for the user
UMException
- if there is any exception while testing for permissionspublic static Principal getPrincipalFromDomainAndCanNm(String domain, String canonicalName) throws UserNotFoundException
domain
- canonicalName
-
UserNotFoundException
public static Principal getPrincipalFromOid(String oid) throws UserNotFoundException
oid
- User's OID
Principal
UserNotFoundException
- if there is no user with given OIDpublic static User getUserFromDomainAndCanNm(String domain, String canonicalName) throws UserNotFoundException
domain
- doamin name of the usercanonicalName
- canonical name of the user
User
UserNotFoundException
- if there is no user for given domain and canonical namepublic static User getUserFromOid(String oid) throws UserNotFoundException
oid
- User's OID
User
UserNotFoundException
- if there is no user with given OIDpublic static String getPrincipalName(String oid) throws UserNotFoundException
oid
- user's OID
UserNotFoundException
- if there is no user with given OIDpublic static Group getGroup(DirectoryManagerServiceClient directoryManagerService, String domainName, String groupName) throws UMException
UMException
public static User getUser(DirectoryManagerServiceClient directoryManagerService, String domainName, String userId) throws UMException
UMException
public static List getGroupMembers(DirectoryManagerServiceClient directoryManagerService, String domainName, String groupName) throws UMException
UMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |