public interface IUser
Modifier and Type | Method and Description |
---|---|
boolean |
addAuthorityToGroup(java.lang.String ticket,
java.lang.String authorityToAdd,
java.lang.String groupToAddTo)
Adds an authority to an existing group in the repository.
|
void |
checkRecoveryCode(java.lang.String userName,
java.lang.String code,
java.lang.String password)
Checks to see if the recovery code sent to the users email is the same as the
one entered.
|
OCGroup |
createGroup(java.lang.String ticket,
java.lang.String groupToCreate)
Creates a new group in the repository.
|
OCUser |
createUser(java.lang.String ticket,
java.lang.String userName,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
java.lang.String displayName,
java.lang.String password)
Creates a user in the repository.
|
boolean |
deleteGroup(java.lang.String ticket,
java.lang.String groupToRemove)
Deletes group from repository.
|
boolean |
deleteUser(java.lang.String ticket,
java.lang.String userToRemove)
Removes a user in the repository.
|
boolean |
disableUser(java.lang.String ticket,
java.lang.String userToDisable)
Disables a user in the repository.
|
boolean |
enableUser(java.lang.String ticket,
java.lang.String userToEnable)
Enables a user in the repository.
|
UserResult |
findAllUsers(java.lang.String ticket)
Deprecated.
|
UserResult |
findAllUsersInGroups(java.lang.String ticket,
java.lang.String[] groupNames)
Deprecated.
|
UserResult |
findAllUsersInGroupsRecursive(java.lang.String ticket,
java.lang.String[] groupNames)
Deprecated.
|
UserResult |
findGroupsWithUser(java.lang.String ticket,
java.lang.String loginName)
Deprecated.
There is no suitable replacement method yet for finding all of the users' groups, but this is deprecated since the performance is
terrible for Documentum currently
|
OCUser |
getAuthenticatedOcUser(java.lang.String ticket)
Get the user identified by the authentication ticket.
|
UserResult |
getAuthenticatedUser(java.lang.String ticket)
Deprecated.
Use
getAuthenticatedOcUser(String) instead |
OCGroup |
getGroup(java.lang.String ticket,
java.lang.String groupId)
Retrieves a group based on the group ID
|
UserResult |
getGroupDetails(java.lang.String ticket,
java.lang.String[] groupNames)
Deprecated.
if you need to use this method, you should write and expose one that doesn't use the UserResult wrapper object and one that makes
use of the OCAuthority object.
|
java.util.List<OCGroup> |
getGroups(java.lang.String ticket,
java.lang.String parentGroupId,
boolean recursive)
Gets a list of groups from the repository.
|
int |
getTotalUserCount(java.lang.String ticket)
Gets the total number of users in the repository.
|
UserResult |
getUser(java.lang.String ticket,
java.lang.String loginName)
Deprecated.
if you need to use this method, you should write and expose one that doesn't use the UserResult wrapper object and one that makes
use of the OCAuthority object.
|
java.lang.String |
getUserHomeDirectory(java.lang.String ticket,
java.lang.String loginName)
Retrieves the objectId of the specified user's home directory
|
java.util.List<OCUser> |
getUsersInGroup(java.lang.String ticket,
java.lang.String parentGroupId)
Gets a list of OCUser objects that are the users currently in groupName.
|
boolean |
isAuthenticatedUserAdmin(java.lang.String ticket)
Check to see if the authenticated user is an ECM repository administrator.
|
boolean |
isUserInGroup(java.lang.String ticket,
java.lang.String username,
java.lang.String groupName)
Verify if a user belongs to a specific group.
|
boolean |
isValidUser(java.lang.String ticket,
java.lang.String userName)
Checks to see if the given userName is a valid user
|
boolean |
removeAuthorityFromGroup(java.lang.String ticket,
java.lang.String authorityToRemove,
java.lang.String groupToRemoveFrom)
Removes an authority from a group in the repository.
|
boolean |
resetUserPassword(java.lang.String ticket,
java.lang.String oldPassword,
java.lang.String newPassword)
Resets a user's password.
|
java.util.List<OCAuthority> |
searchAuthorities(java.lang.String ticket,
OCAuthoritySearchCriteria criteria)
Gets a list of
OCAuthority from the repository based on the provided search criteria. |
UserBean[] |
searchUsersInGroup(java.lang.String ticket,
java.lang.String groupName,
java.lang.String searchTerm,
boolean searchSubGroups)
Deprecated.
|
boolean |
setUserInboxProxy(java.lang.String ticket,
java.lang.String proxyUserLoginName)
Sets the given user as a proxy user for any workflow tasks that are assigned to the session ticket owner.
|
boolean |
updateUser(java.lang.String ticket,
java.lang.String userName,
java.lang.String displayName,
java.lang.String email,
java.lang.String password)
Updates the info for the given user.
|
UserBean |
userForgotPassword(java.lang.String userName)
Sets a recovery code and expiration time to the user.
|
boolean isUserInGroup(java.lang.String ticket, java.lang.String username, java.lang.String groupName)
ticket
- a valid authentication ticketusername
- name of the usergroupName
- name of the group to verify@Deprecated UserResult getUser(java.lang.String ticket, java.lang.String loginName)
ticket
- a valid authentication ticketloginName
- user's login nameUserResult
error
returns true if method failed, otherwise falseuserBeans
- 1 single bean for the given loginNamedisplayName
- repo specific display nameloginName
- repo specific login nameboolean isValidUser(java.lang.String ticket, java.lang.String userName)
ticket
- a valid authentication ticketuserName
- user's login name@Deprecated UserResult getGroupDetails(java.lang.String ticket, java.lang.String[] groupNames)
ticket
- a valid authentication ticketgroupNames
- group names to return detail ofUserResult
error
returns true if method failed, otherwise falsegroupBeans
- each returned groupdisplayName
- repo specific display namegroupName
- group name@Deprecated UserResult findAllUsers(java.lang.String ticket)
searchAuthorities(String, OCAuthoritySearchCriteria)
ticket
- a valid authentication ticketUserResult
error
returns true if method failed, otherwise falseuserBeans
- each returned userdisplayName
- repo specific display nameloginName
- repo specific login namegroupName
- groups the specific user belongs to@Deprecated UserResult findAllUsersInGroups(java.lang.String ticket, java.lang.String[] groupNames)
searchAuthorities(String, OCAuthoritySearchCriteria)
searchAuthorities(String, OCAuthoritySearchCriteria)
for documentum for groupsticket
- a valid authentication ticketgroupNames
- name of group to find users inUserResult
error
returns true if method failed, otherwise falsegroupBeans
- each group that was queried, fully populateddisplayName
- repo specific display namegroupName
- group nameusers
- fully populated UserBean
in the group@Deprecated UserResult findAllUsersInGroupsRecursive(java.lang.String ticket, java.lang.String[] groupNames)
searchAuthorities(String, OCAuthoritySearchCriteria)
searchAuthorities(String, OCAuthoritySearchCriteria)
for documentum for groupsticket
- a valid authentication ticketgroupNames
- name of group to find users inUserResult
error
returns true if method failed, otherwise falsegroupBeans
- each group that was queried, fully populateddisplayName
- repo specific display namegroupName
- group nameusers
- fully populated UserBean
in the group@Deprecated UserBean[] searchUsersInGroup(java.lang.String ticket, java.lang.String groupName, java.lang.String searchTerm, boolean searchSubGroups)
searchAuthorities(String, OCAuthoritySearchCriteria)
searchAuthorities(String, OCAuthoritySearchCriteria)
for documentum for groups
Implementations should ensure that the search is case insensitive.ticket
- authentication ticketgroupName
- the group to searchsearchTerm
- the search termsearchSubGroups
- boolean that determines whether or not the search should recurse on sub-groupsUserBean#getGroupNames()
will return an empty array.@Deprecated UserResult findGroupsWithUser(java.lang.String ticket, java.lang.String loginName)
ticket
- a valid authentication ticketloginName
- user's login nameUserResult
error
returns true if method failed, otherwise falsegroupBeans
- each group the user belongs to, group does not have users populateddisplayName
- repo specific display namegroupName
- group name@Deprecated UserResult getAuthenticatedUser(java.lang.String ticket)
getAuthenticatedOcUser(String)
insteadticket
- a valid authentication ticketUserResult
error
returns true if method failed, otherwise falseuserBeans
- 1 single bean for the given loginNamedisplayName
- repo specific display nameloginName
- repo specific login namegroupName
- groups the specific user belongs toOCUser getAuthenticatedOcUser(java.lang.String ticket)
ticket
- a valid authentication ticketOCAuthority
displayName
- repo specific display nameauthorityId
- repo specific login name or group nameemailAddress
- email addressboolean isAuthenticatedUserAdmin(java.lang.String ticket)
ticket
- valid OC ticketboolean
value indicating whether or not the authenticated user is a repository administrator.java.lang.String getUserHomeDirectory(java.lang.String ticket, java.lang.String loginName)
ticket
- a valid authentication ticketloginName
- The loginname of the use for which to retrieve a home directoryOCGroup getGroup(java.lang.String ticket, java.lang.String groupId)
ticket
- a valid authentication ticketgroupId
- the group to retrieve. Note - this is NOT the repository ID. It's the non-displayName.OCGroup
representing the group or null
if the group is not foundjava.util.List<OCGroup> getGroups(java.lang.String ticket, java.lang.String parentGroupId, boolean recursive)
ticket
- a valid authentication ticketparentGroupId
- the parent grouprecursive
- true
if you would like to return sub-groups of all sub-groups, false
otherwiseOCGroup
objectsjava.util.List<OCAuthority> searchAuthorities(java.lang.String ticket, OCAuthoritySearchCriteria criteria)
OCAuthority
from the repository based on the provided search criteria.
See OCAuthoritySearchCriteria
for details on how to configure the search.ticket
- a valid authentication ticket{@link
- OCAuthoritySearchCriteria} criteriajava.util.List<OCUser> getUsersInGroup(java.lang.String ticket, java.lang.String parentGroupId)
ticket
- a valid authentication ticketgroupName
- name of the group from which to get the child usersOCUser
objectsboolean resetUserPassword(java.lang.String ticket, java.lang.String oldPassword, java.lang.String newPassword)
ticket
- a valid authentication ticketoldPassword
- the current password for the usernewPassword
- the new password for the userboolean removeAuthorityFromGroup(java.lang.String ticket, java.lang.String authorityToRemove, java.lang.String groupToRemoveFrom)
ticket
- a valid authentication ticketauthorityToRemove
- name of user or group to remove from groupToRemoveFromgroupToRemoveFrom
- name of group to remove authorityToRemove fromboolean addAuthorityToGroup(java.lang.String ticket, java.lang.String authorityToAdd, java.lang.String groupToAddTo)
ticket
- a valid authentication ticketauthorityToAdd
- name of authority to add to groupToAddTogroupToAddTo
- name of group to add authorityToAdd toOCGroup createGroup(java.lang.String ticket, java.lang.String groupToCreate)
ticket
- a valid authentication ticketgroupToCreate
- name of group to create in repositoryOCGroup
group that was created in repositoryboolean deleteGroup(java.lang.String ticket, java.lang.String groupToRemove)
ticket
- a valid authentication ticketgroupToRemove
- name of group to delete from repositoryboolean disableUser(java.lang.String ticket, java.lang.String userToDisable)
userToDisable
- unique username of user to disableboolean enableUser(java.lang.String ticket, java.lang.String userToEnable)
userToDisable
- unique username of user to enableOCUser createUser(java.lang.String ticket, java.lang.String userName, java.lang.String firstName, java.lang.String lastName, java.lang.String email, java.lang.String displayName, java.lang.String password)
userName
- Unique Username of new userfirstName
- First name of new user, This is optionallastName
- Last name of new user, This is optionalemail
- email address of new userpassword
- new userboolean deleteUser(java.lang.String ticket, java.lang.String userToRemove)
ticket
- userToRemove
- userName of the the User to be removedboolean updateUser(java.lang.String ticket, java.lang.String userName, java.lang.String displayName, java.lang.String email, java.lang.String password)
ticket
- userName
- the user to be updateddisplayName
- the updated displayNameemail
- the updated email addresspassword
- the updated passwordboolean setUserInboxProxy(java.lang.String ticket, java.lang.String proxyUserLoginName)
ticket
- The ticket for the current session.proxyUserLoginName
- LoginName of the proxy user, if any.int getTotalUserCount(java.lang.String ticket)
ticket
- The ticket for the current session. Note that it is up to the implementation to
handle a blank ticket, which will get the total user count with an admin session.UserBean userForgotPassword(java.lang.String userName)
email
- email associated with the user that forgot their passworduserName
- user who forgot their passwordvoid checkRecoveryCode(java.lang.String userName, java.lang.String code, java.lang.String password)
userName
- the user to check the code tocode
- Recovery code sent to the userpassword
- the updated password