Interface MyRolesAndActionsInterface
-
public interface MyRolesAndActionsInterfaceMyRolesAndActionsInterface covers the ability to query a person's roles and any actions (to dos) assigned to those roles.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<PersonalRoleElement>getMyPersonalRoles(String userId, int startFrom, int pageSize)Return a list of the personal roles that the calling user is appointed to.List<ToDoElement>getMyToDos(String userId, ToDoStatus status, int startFrom, int pageSize)Return a list of to dos assigned to the calling user.List<ToDoElement>getMyToDosByRole(String userId, String personalRoleGUID, ToDoStatus status, int startFrom, int pageSize)Return a list of to dos assigned to the calling user.
-
-
-
Method Detail
-
getMyPersonalRoles
List<PersonalRoleElement> getMyPersonalRoles(String userId, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of the personal roles that the calling user is appointed to.- Parameters:
userId- userId of user making request.startFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- list of personal role details
- Throws:
InvalidParameterException- one of the parameters is invalid.PropertyServerException- there is a problem retrieving information from the property server(s).UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getMyToDos
List<ToDoElement> getMyToDos(String userId, ToDoStatus status, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of to dos assigned to the calling user.- Parameters:
userId- userId of user making request.status- status of the to do (null means current active)startFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- list of to do details
- Throws:
InvalidParameterException- one of the parameters is invalid.PropertyServerException- there is a problem retrieving information from the property server(s).UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getMyToDosByRole
List<ToDoElement> getMyToDosByRole(String userId, String personalRoleGUID, ToDoStatus status, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of to dos assigned to the calling user.- Parameters:
userId- userId of user making request.personalRoleGUID- unique identifier of the user's role.status- status of the to do (null means current active)startFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.- Returns:
- list of to do details
- Throws:
InvalidParameterException- one of the parameters is invalid.PropertyServerException- there is a problem retrieving information from the property server(s).UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
-