|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ManagerServiceClient com.adobe.livecycle.usermanager.client.DirectoryManagerServiceClient
public class DirectoryManagerServiceClient
This is the client implementation of the DirectoryManager
class.
DirectoryManager
Constructor Summary | |
---|---|
DirectoryManagerServiceClient(ServiceClientFactory serviceClientFactory)
Directory manager service client constructor. |
Method Summary | |
---|---|
void |
addAllowedRefererExceptions(java.lang.String listId,
java.util.List refererExceptions)
Creates a list of exceptions of Allowed Referers for which a request will be blocked |
void |
addPrincipalToLocalGroup(java.lang.String principalOid,
java.lang.String localGroupOid)
Adds a principal to an existing local group. |
void |
createAllowedURIsList(java.lang.String listId,
java.util.List allowedURIs)
Creates a list of allowed URI's to be white-listed for any calling referer |
java.lang.String |
createDirectoryPrincipal(Principal principal)
Creates a new directory principal. |
void |
createDomain(Domain d)
Creates a domain in the system. |
java.lang.String |
createLocalGroup(Group localGroup)
Creates a new local group. |
java.lang.String |
createLocalSystemUser(User p)
Creates a new local system user. |
java.lang.String |
createLocalUser(User localUser,
java.lang.String password)
Creates a new local user. |
java.lang.String |
createLocalUser(User localUser,
java.lang.String hashedPassword,
java.lang.String salt)
Creates a new local user. |
java.util.Map |
createLocalUsers(java.util.Set userInfo)
Creates a set of new local users. |
void |
deleteAllowedRefererExceptions(java.lang.String listId)
Deletes the list of Allowed Referer Exceptions with the input list Id. |
void |
deleteAllowedURIsList(java.lang.String listId)
Deletes the list of white listed URIs with the input list Id. |
void |
deleteDomain(java.lang.String domainName)
Deletes the domain and all associated principals from the system. |
void |
deleteLocalGroup(java.lang.String groupOid)
Deletes the specified local group. |
void |
deleteLocalUser(java.lang.String userOid)
Deletes a local user from the system. |
Domain |
findDomain(java.lang.String domainName)
Retrieves the domain with the specified name. |
java.util.List |
findDomains()
Enumerates all domains in the system. |
java.util.List |
findGroupMembers(GroupMembershipSearchFilter gsf)
Finds user and group members contained with a group. |
java.util.List |
findGroups(PrincipalSearchFilter searchFilter)
Deprecated. |
Principal |
findPrincipal(java.lang.String oid)
Retrieves a principal according to the specified identifier. |
Principal |
findPrincipal(java.lang.String domainName,
java.lang.String canonicalName)
Retrieves a principal according to the specified domain name and canonical name. |
java.util.Map |
findPrincipalReference(java.util.List principalOids)
Retrieves principal references according to the specified identifiers. |
PrincipalReference |
findPrincipalReference(java.lang.String oid)
Retrieves a principal reference according to the specified identifier. |
PrincipalReference |
findPrincipalReference(java.lang.String domainName,
java.lang.String canonicalName)
Retrieves a principal reference according to the specified domain name and canonical name. |
java.util.List |
findPrincipalReferences(PrincipalSearchFilter searchFilter)
Finds the principals according to the specified search filter and the specified principal type. |
java.util.List |
findPrincipalReferences(PrincipalSearchFilter searchFilter,
java.lang.String principalType)
Deprecated. |
java.util.Map |
findPrincipals(java.util.List principalOids)
Retrieves principals according to the specified identifiers. |
java.util.List |
findPrincipals(PrincipalSearchFilter searchFilter)
Finds the principals according to the specified search filter |
java.util.List |
findPrincipals(PrincipalSearchFilter searchFilter,
java.util.List principalOids)
Deprecated. |
java.util.List |
findPrincipals(PrincipalSearchFilter searchFilter,
java.lang.String principalType)
Deprecated. |
java.util.Map |
findPrincipals(java.util.Set principalReferences)
Returns a Map with principalReference type as the key and the corresponding Principal as the value. |
java.util.Map |
findPrincipalsByEmailId(java.util.Set emailIds)
Finds the principals having the specified email identifiers. |
java.util.Map |
findPrincipalStatus(java.util.Set principalReferences)
Retrieves the status for the specified principals. |
java.util.List |
findUsers(PrincipalSearchFilter searchFilter)
Deprecated. |
java.util.List |
getAllBusinessCalendarKeys()
Returns a unique set of all the business calendar attribute values. |
java.util.List |
getAllowedRefererExceptions(java.lang.String listId)
Returns a list of Allowed Referer Exception existing in the input list id. |
java.util.List |
getAllowedReferers()
Returns a list of all allowed Referers. |
java.util.List |
getAllowedURIsList(java.lang.String listId)
Returns a list of all white listed URIs existing in the input list id. |
java.lang.String |
getBusinessCalendarKeyforUser(java.lang.String oid)
Returns the business calendar key attribute value for the user whose oid has been passed in. |
java.util.Map |
getDirectorySyncStatus(java.util.Set domainNames)
Retrieves the synchronization status for the java.util.Set of domains. |
Group |
getDomainAsGroup(java.lang.String domainName)
Retrieves the associated group with the specified domain. |
java.util.List |
getDynamicGroupCriteriaAttributes()
Returns a list of all attributes which are being used as criteria in creation of Dynamic Groups. |
DynamicGroupMembershipCriteria |
getDynamicGroupMembershipCriteria(java.lang.String groupOid)
Fetches the membership criteria of a DynamicGroup |
void |
removePrincipalFromLocalGroup(java.lang.String principalOid,
java.lang.String localGroupOid)
Removes a principal from an existing local group. |
void |
updateAllowedRefererExceptions(java.lang.String listId,
java.util.List refererExceptions)
Updates a list of exceptions of Allowed Referers for which a request will be blocked. |
void |
updateAllowedURIsList(java.lang.String listId,
java.util.List allowedURIs)
Updates a list of allowed URI's to be white-listed for any calling referer. |
void |
updateDomain(Domain updatedDom)
Updates the mutable fields in a domain. |
void |
updateDynamicGroupMembershipCriteria(java.lang.String groupOid,
DynamicGroupMembershipCriteria criteria)
Updates the membership criteria of a DynamicGroup |
void |
updateLocalGroup(Group updatedGroup)
Updates information in the group. |
void |
updateLocalUser(User updatedUser,
java.lang.String password)
Updates a local user. |
void |
updateLocalUser(User updatedUser,
java.lang.String oldPassword,
java.lang.String newPassword)
Updates a local user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryManagerServiceClient(ServiceClientFactory serviceClientFactory)
serviceClientFactory
- The service client factory.Method Detail |
---|
public void createDomain(Domain d) throws UMException
createDomain
in interface DirectoryManager
d
- The domain to be created.
UMException
public void deleteDomain(java.lang.String domainName) throws UMException
deleteDomain
in interface DirectoryManager
domainName
- The domain to be deleted.
UMException
public void updateDomain(Domain updatedDom) throws UMException
DirectoryManagerServiceClient.findDomains()
to retrieve the Domain
object to be updated.
updateDomain
in interface DirectoryManager
updatedDom
- The updated domain.
UMException
DirectoryManagerServiceClient.findDomains()
public Domain findDomain(java.lang.String domainName) throws UMException
findDomain
in interface DirectoryManager
domainName
- The name of the domain to be found.
UMException
public java.util.Map getDirectorySyncStatus(java.util.Set domainNames) throws UMException
java.util.Set
of domains.
getDirectorySyncStatus
in interface DirectoryManager
domainNames
- The set of domains whose synchronization status is to be retrieved.
java.util.Map
whose keys are the domain names and whose values are
the corresponding synchronization status (DirectorySyncInfo
) objects.
UMException
DirectorySyncInfo
public Group getDomainAsGroup(java.lang.String domainName) throws UMException
getDomainAsGroup
in interface DirectoryManager
domainName
- The domain associated with the group.
UMException
public java.lang.String createDirectoryPrincipal(Principal principal) throws UMException
createDirectoryPrincipal
in interface DirectoryManager
principal
- The directory principal to be created in the system.
UMException
public java.lang.String createLocalGroup(Group localGroup) throws UMException
createLocalGroup
in interface DirectoryManager
localGroup
- The local group to be created in the system.
UMException
public void updateDynamicGroupMembershipCriteria(java.lang.String groupOid, DynamicGroupMembershipCriteria criteria) throws UMException
updateDynamicGroupMembershipCriteria
in interface DirectoryManager
groupOid
- criteria
-
UMException
public DynamicGroupMembershipCriteria getDynamicGroupMembershipCriteria(java.lang.String groupOid) throws UMException
getDynamicGroupMembershipCriteria
in interface DirectoryManager
groupOid
-
UMException
public void deleteLocalGroup(java.lang.String groupOid) throws UMException
deleteLocalGroup
in interface DirectoryManager
groupOid
- The local group identifier.
UMException
public void updateLocalGroup(Group updatedGroup) throws UMException
findPrincipal()
method (cast the result to a Group
),
and invoke the object's setDescription()
method.
updateLocalGroup
in interface DirectoryManager
updatedGroup
- The group to be updated.
UMException
public java.lang.String createLocalUser(User localUser, java.lang.String password) throws UMException
createLocalUser
in interface DirectoryManager
localUser
- The local user to be created in the system.password
- The local user's password.
UMException
public java.lang.String createLocalUser(User localUser, java.lang.String hashedPassword, java.lang.String salt) throws UMException
createLocalUser
in interface DirectoryManager
localUser
- The local user to be created in the system.hashedPassword
- The local user's hashed password.salt
- The salt used with the local user's hashed password.
UMException
public java.util.Map createLocalUsers(java.util.Set userInfo) throws UMException
createLocalUsers
in interface DirectoryManager
userInfo
- A java.util.Set
containing UserInfo
instances that represent each user's object and password.
java.util.Map
whose keys are the UserInfo
instances and
whose values are the automatically generated corresponding local user identifiers.
UMException
public java.lang.String createLocalSystemUser(User p) throws UMException
createLocalSystemUser
in interface DirectoryManager
p
- The new local system user.
UMException
public void deleteLocalUser(java.lang.String userOid) throws UMException
deleteLocalUser
in interface DirectoryManager
userOid
- The local user's identifier.
UMException
public void updateLocalUser(User updatedUser, java.lang.String password) throws UMException
updateLocalUser
in interface DirectoryManager
updatedUser
- The updated user information.password
- The user's new password. Use null
if you do not want to change the password.
UMException
public void addPrincipalToLocalGroup(java.lang.String principalOid, java.lang.String localGroupOid) throws UMException
addPrincipalToLocalGroup
in interface DirectoryManager
principalOid
- The principal identifier.localGroupOid
- The local group identifier.
UMException
public void removePrincipalFromLocalGroup(java.lang.String principalOid, java.lang.String localGroupOid) throws UMException
removePrincipalFromLocalGroup
in interface DirectoryManager
principalOid
- The principal identifier.localGroupOid
- The local group identifier.
UMException
public java.util.List findDomains() throws UMException
findDomains
in interface DirectoryManager
java.util.List
containing all the Domain
objects in the system.
UMException
public java.util.List findGroups(PrincipalSearchFilter searchFilter) throws UMException
findGroups
in interface DirectoryManager
searchFilter
- The search filter specifying the groups to be returned.
java.util.List
containing all the Group
objects found according to the specified search criteria.
UMException
public java.util.List findUsers(PrincipalSearchFilter searchFilter) throws UMException
findUsers
in interface DirectoryManager
searchFilter
- The search filter specifying the users to be returned.
java.util.List
containing all the User
objects found according to the specified search criteria.
UMException
public Principal findPrincipal(java.lang.String oid) throws UMException
findPrincipal
in interface DirectoryManager
oid
- The principal identifier.
UMException
public PrincipalReference findPrincipalReference(java.lang.String oid) throws UMException
findPrincipalReference
in interface DirectoryManager
oid
- The principal identifier.
PrincipalReference
for the principal to be retrieved.
UMException
public java.util.Map findPrincipalReference(java.util.List principalOids) throws UMException
findPrincipalReference
in interface DirectoryManager
principalOids
- A java.util.List
containing the principal identifiers.
PrincipalReference
for the principals.
UMException
public Principal findPrincipal(java.lang.String domainName, java.lang.String canonicalName) throws UMException
findPrincipal
in interface DirectoryManager
domainName
- The domain name of the principal.canonicalName
- The canonical name of the principal.
UMException
public PrincipalReference findPrincipalReference(java.lang.String domainName, java.lang.String canonicalName) throws UMException
findPrincipalReference
in interface DirectoryManager
domainName
- The domain name of the principal.canonicalName
- The canonical name of the principal.
PrincipalReference
for the principal to be retrieved.
UMException
public java.util.Map findPrincipals(java.util.List principalOids) throws UMException
findPrincipals
in interface DirectoryManager
principalOids
- A java.util.List
of principal identifiers.
java.util.Map
whose keys are the principal identifiers and whose values are the principals.
UMException
public java.util.List findGroupMembers(GroupMembershipSearchFilter gsf) throws UMException
DirectoryManager
findGroupMembers
in interface DirectoryManager
gsf
- The group membership search filter used for the search.
UMException
public java.util.List findPrincipals(PrincipalSearchFilter searchFilter, java.util.List principalOids) throws UMException
java.util.List
.
findPrincipals
in interface DirectoryManager
searchFilter
- The search filter specifying the principals to be returned.principalOids
- A java.util.List
of principal identifiers used to limit the search.
java.util.List
containing all the Principal
objects found.
UMException
public java.util.Map findPrincipalStatus(java.util.Set principalReferences) throws UMException
findPrincipalStatus
in interface DirectoryManager
principalReferences
- A java.util.List
of principal references PrincipalReference
.
java.util.Map
whose keys are principal references and whose values are the corresponding status in each case.
UMException
UMConstants
public java.util.Map findPrincipalsByEmailId(java.util.Set emailIds) throws UMException
findPrincipalsByEmailId
in interface DirectoryManager
emailIds
- A java.util.Set
of email identifiers for the principals.
java.util.Map
with key as the email identifier and value as in instance of java.util.Set
containing the corresponding principals.
UMException
public java.util.List findPrincipalReferences(PrincipalSearchFilter searchFilter, java.lang.String principalType) throws UMException
findPrincipalReferences
in interface DirectoryManager
searchFilter
- The search filter specifying the principals to be returned.principalType
- The type of the principals to be retrieved.
java.util.List
containing all references PrincipalReference
for the principals found
according to the specified search criteria and principal type.
UMException
public java.util.List findPrincipalReferences(PrincipalSearchFilter searchFilter) throws UMException
findPrincipalReferences
in interface DirectoryManager
searchFilter
- The search filter specifying the principals to be returned.
java.util.List
containing all references PrincipalReference
for the principals found
according to the specified search criteria and principal type.
UMException
public java.util.List findPrincipals(PrincipalSearchFilter searchFilter, java.lang.String principalType) throws UMException
findPrincipals
in interface DirectoryManager
searchFilter
- The search filter specifying the principals to be returned.principalType
- The type of the principals to be retrieved.
java.util.List
containing all the Principal
objects found according to the specified search criteria and principal type.
UMException
public java.util.List findPrincipals(PrincipalSearchFilter searchFilter) throws UMException
findPrincipals
in interface DirectoryManager
searchFilter
- The search filter specifying the principals to be returned.
java.util.List
containing all the Principal
objects found according to the specified search criteria and principal type.
UMException
public java.util.Map findPrincipals(java.util.Set principalReferences) throws UMException
findPrincipals
in interface DirectoryManager
principalReferences
- : A set sonatinUse this to specify what should be returned
UMException
public void updateLocalUser(User updatedUser, java.lang.String oldPassword, java.lang.String newPassword) throws UMException
updateLocalUser
in interface DirectoryManager
updatedUser
- The updated user information.oldPassword
- The user's old password.newPassword
- The user's new password. Use null
if you do not want to change the password.
UMException
public java.lang.String getBusinessCalendarKeyforUser(java.lang.String oid) throws UMException
getBusinessCalendarKeyforUser
in interface DirectoryManager
oid
- The principal Oid.
java.lang.String
containing the Calender key for the User.
UMException
public java.util.List getAllBusinessCalendarKeys() throws UMException
getAllBusinessCalendarKeys
in interface DirectoryManager
java.util.List
containing java.lang.String
values for All Business Calender Keys.
UMException
public void createAllowedURIsList(java.lang.String listId, java.util.List allowedURIs) throws UMException
createAllowedURIsList
in interface DirectoryManager
listId
- A java.lang.String
id that identifies the List.allowedURIs
- A java.uitl.List
of all white listed URI's
UMException
public void deleteAllowedURIsList(java.lang.String listId) throws UMException
deleteAllowedURIsList
in interface DirectoryManager
listId
- A java.lang.String
id that identifies the List.
UMException
public java.util.List getAllowedReferers() throws UMException
getAllowedReferers
in interface DirectoryManager
java.util.List
containing java.lang.String
values for white listed Referers.
UMException
public java.util.List getAllowedURIsList(java.lang.String listId) throws UMException
getAllowedURIsList
in interface DirectoryManager
listId
- A java.lang.String
id that identifies the List.
java.util.List
containing java.lang.String
values for white listed URIs.
UMException
public void updateAllowedURIsList(java.lang.String listId, java.util.List allowedURIs) throws UMException
updateAllowedURIsList
in interface DirectoryManager
listId
- A java.lang.String
id that identifies the List.allowedURIs
- A java.uitl.List
of all white listed URI's
UMException
public java.util.List getDynamicGroupCriteriaAttributes() throws UMException
getDynamicGroupCriteriaAttributes
in interface DirectoryManager
java.util.List
containing java.lang.Integer
values for Dynamic Group Attributes.
UMException
DynamicGroupMembershipCriteria#membership_canonicalName}
,
DynamicGroupMembershipCriteria#membership_commonName}
,
DynamicGroupMembershipCriteria#membership_domainName}
,
DynamicGroupMembershipCriteria#membership_email}
public void addAllowedRefererExceptions(java.lang.String listId, java.util.List refererExceptions) throws UMException
addAllowedRefererExceptions
in interface DirectoryManager
listId
- A java.lang.String
id that identifies the List.allowedURIs
- A java.uitl.List
of all Allowed Referer Exceptions
UMException
public void deleteAllowedRefererExceptions(java.lang.String listId) throws UMException
deleteAllowedRefererExceptions
in interface DirectoryManager
listId
- A java.lang.String
id that identifies the List.
UMException
public java.util.List getAllowedRefererExceptions(java.lang.String listId) throws UMException
getAllowedRefererExceptions
in interface DirectoryManager
listId
- A java.lang.String
id that identifies the List.
java.util.List
containing java.lang.String
values for Allowed Referer Exceptions
UMException
public void updateAllowedRefererExceptions(java.lang.String listId, java.util.List refererExceptions) throws UMException
updateAllowedRefererExceptions
in interface DirectoryManager
listId
- A java.lang.String
id that identifies the List.allowedURIs
- A java.uitl.List
of all Allowed Referer Exceptions
UMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |