Interface UsersLocal
public interface UsersLocal
Local interface for the Users service from the Planner API
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new usersbooleandeleteUserByID(String login) Deletes the user from the system at the specified logingetUserAccessRights(String login, String rightId) Returns the access rights (with permissions) assigned to the usergetUserByID(String login) Returns the user at the specified logingetUserCheckedoutDocuments(String login) Returns the checked-out documents by the usergetUserDatasets(String login) Returns the datasets assigned to the usergetUserRoles(String login) Returns the roles with user assigned at the specified logingetUsers(UsersFilter filter) Returns users at the specified criteria.getUserSessions(String login) Returns the sessions assigned to the userModifies existing usersetUserDatasets(String login, List<Dataset> datasets) Modifies the datasets assigned to the userModifies existing userssetUserToRoles(String login, List<UserRole> roles) Modifies role assignment to the specified user
-
Method Details
-
getUserByID
Returns the user at the specified login- Parameters:
login- login of the user- Returns:
- User
- Throws:
ServiceExceptionResourceNotFoundException
-
deleteUserByID
Deletes the user from the system at the specified login- Parameters:
login- login of the user- Returns:
- boolean true if done successfully
- Throws:
ServiceException
-
setUser
Modifies existing user- Parameters:
user- object with user data to modify- Returns:
- User object after modification
- Throws:
ServiceException- See Also:
-
getUsers
Returns users at the specified criteria.- Parameters:
filter- filter object- Returns:
- List of Users
- Throws:
ServiceException
-
addUsers
Adds a new users- Parameters:
users- List of Users to create- Returns:
- List of Users
- Throws:
ServiceException- See Also:
-
setUsers
Modifies existing users- Parameters:
users- List of Users to modify- Returns:
- List of users after modification
- Throws:
ServiceException- See Also:
-
getUserRoles
Returns the roles with user assigned at the specified login- Parameters:
login- login of the user- Returns:
- List of Roles
- Throws:
ServiceException- See Also:
-
setUserToRoles
Modifies role assignment to the specified userIf we want remove user from the role, we should set delete flag of the role to "1"
- Parameters:
login- login of the userroles- List of UserRole to modify- Returns:
- List of Roles after modification
- Throws:
ServiceException- See Also:
-
getUserSessions
Returns the sessions assigned to the user- Parameters:
login- login of the user- Returns:
- List of Session
- Throws:
ServiceException- See Also:
-
getUserCheckedoutDocuments
Returns the checked-out documents by the user- Parameters:
login- login of the user- Returns:
- List of CheckoutDocument
- Throws:
ServiceException- See Also:
-
getUserDatasets
Returns the datasets assigned to the user- Parameters:
login- login of the user- Returns:
- List of Dataset
- Throws:
ServiceException- See Also:
-
setUserDatasets
Modifies the datasets assigned to the userIf we want remove dataset assignment from the user, we should set delete flag of the Dataset to "1"
- Parameters:
login- login of the user- Returns:
- List of Dataset
- Throws:
ServiceException- See Also:
-
getUserAccessRights
Returns the access rights (with permissions) assigned to the user- Parameters:
login- login of the userrightId- - optional, if not empty we can get specified right of the user- Returns:
- List of UserAccessRight
- Throws:
ServiceException- See Also:
-