|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResponsibilityService
This service provides operations for determining what responsibility actions a principal has and for querying about responsibility data. It also provides several write operations.
A responsibility represents an action that a principal is requested to take. This is used for defining workflow actions (such as approve, acknowledge, fyi) that the principal has the responsibility to take. The workflow engine integrates with this service to provide responsibility-driven routing.
A responsibility is very similar to a permission in a couple of ways. First of all, responsibilities are always granted to a role, never assigned directly to a principal or group. Furthermore, in a similar fashion to permissions, a role has the concept of a responsibility template. The responsibility template specifies what additional responsibility details need to be defined when the responsibility is created.
Method Detail |
---|
Responsibility createResponsibility(Responsibility responsibility) throws RiceIllegalArgumentException, RiceIllegalStateException
Responsibility
exactly like the responsibility passed in.
responsibility
- the responsibility to create
IllegalArgumentException
- if the responsibility is null
IllegalStateException
- if the responsibility is already existing in the system
RiceIllegalArgumentException
RiceIllegalStateException
Responsibility updateResponsibility(Responsibility responsibility) throws RiceIllegalArgumentException, RiceIllegalStateException
Responsibility
.
responsibility
- the responsibility to update
IllegalArgumentException
- if the responsibility is null
IllegalStateException
- if the responsibility does not exist in the system
RiceIllegalArgumentException
RiceIllegalStateException
Responsibility getResponsibility(String id)
Responsibility
from an id.
This method will return null if the responsibility does not exist.
id
- the unique id to retrieve the responsibility by. cannot be null.
Responsibility
or null
IllegalArgumentException
- if the id is blankResponsibility findRespByNamespaceCodeAndName(String namespaceCode, String name)
Template getResponsibilityTemplate(String id)
Template
from an id.
This method will return null if the template does not exist.
id
- the unique id to retrieve the template by. cannot be null.
Template
or null
IllegalArgumentException
- if the id is blankTemplate findRespTemplateByNamespaceCodeAndName(String namespaceCode, String name)
boolean hasResponsibility(String principalId, String namespaceCode, String respName, Map<String,String> qualification, Map<String,String> responsibilityDetails)
boolean hasResponsibilityByTemplateName(String principalId, String namespaceCode, String respTemplateName, Map<String,String> qualification, Map<String,String> responsibilityDetails)
List<ResponsibilityAction> getResponsibilityActions(String namespaceCode, String responsibilityName, Map<String,String> qualification, Map<String,String> responsibilityDetails)
List<ResponsibilityAction> getResponsibilityActionsByTemplateName(String namespaceCode, String respTemplateName, Map<String,String> qualification, Map<String,String> responsibilityDetails)
List<String> getRoleIdsForResponsibility(String id, Map<String,String> qualification)
ResponsibilityQueryResults findResponsibilities(QueryByCriteria queryByCriteria)
queryByCriteria
- the criteria. Cannot be null.
IllegalArgumentException
- if the queryByCriteria is nullTemplateQueryResults findResponsibilityTemplates(QueryByCriteria queryByCriteria)
queryByCriteria
- the criteria. Cannot be null.
IllegalArgumentException
- if the queryByCriteria is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |