|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kim.impl.responsibility.ResponsibilityServiceImpl
public class ResponsibilityServiceImpl
Constructor Summary | |
---|---|
ResponsibilityServiceImpl()
|
Method Summary | |
---|---|
Responsibility |
createResponsibility(Responsibility responsibility)
This will create a Responsibility exactly like the responsibility passed in. |
Responsibility |
findRespByNamespaceCodeAndName(String namespaceCode,
String name)
Finds a Responsibility for namespaceCode and name. |
ResponsibilityQueryResults |
findResponsibilities(QueryByCriteria queryByCriteria)
This method find Responsibilities based on a query criteria. |
TemplateQueryResults |
findResponsibilityTemplates(QueryByCriteria queryByCriteria)
This method find Responsibility Templates based on a query criteria. |
Template |
findRespTemplateByNamespaceCodeAndName(String namespaceCode,
String name)
Finds a Template for namespaceCode and name. |
Responsibility |
getResponsibility(String id)
Gets a Responsibility from an id. |
List<ResponsibilityAction> |
getResponsibilityActions(String namespaceCode,
String responsibilityName,
Map<String,String> qualification,
Map<String,String> responsibilityDetails)
Gets a List of ResponsibilityAction based on passed in responsibility information. |
List<ResponsibilityAction> |
getResponsibilityActionsByTemplateName(String namespaceCode,
String respTemplateName,
Map<String,String> qualification,
Map<String,String> responsibilityDetails)
Gets a List of ResponsibilityAction based on passed in responsibility template information. |
Template |
getResponsibilityTemplate(String id)
Gets a Template from an id. |
List<String> |
getRoleIdsForResponsibility(String id,
Map<String,String> qualification)
Gets a List of roleIds that the responsibility is associated with. |
boolean |
hasResponsibility(String principalId,
String namespaceCode,
String respName,
Map<String,String> qualification,
Map<String,String> responsibilityDetails)
Checks in a given principal id has a responsibility using the passed in responsibility information. |
boolean |
hasResponsibilityByTemplateName(String principalId,
String namespaceCode,
String respTemplateName,
Map<String,String> qualification,
Map<String,String> responsibilityDetails)
Checks in a given principal id has a responsibility using the passed in responsibility template information. |
void |
setBusinessObjectService(BusinessObjectService businessObjectService)
|
void |
setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
|
void |
setDefaultResponsibilityTypeService(ResponsibilityTypeService defaultResponsibilityTypeService)
|
void |
setKimTypeInfoService(KimTypeInfoService kimTypeInfoService)
|
void |
setRoleService(RoleService roleService)
|
Responsibility |
updateResponsibility(Responsibility responsibility)
This will update a Responsibility . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponsibilityServiceImpl()
Method Detail |
---|
public Responsibility createResponsibility(Responsibility responsibility) throws RiceIllegalArgumentException, RiceIllegalStateException
ResponsibilityService
Responsibility
exactly like the responsibility passed in.
createResponsibility
in interface ResponsibilityService
responsibility
- the responsibility to create
RiceIllegalArgumentException
RiceIllegalStateException
public Responsibility updateResponsibility(Responsibility responsibility) throws RiceIllegalArgumentException, RiceIllegalStateException
ResponsibilityService
Responsibility
.
updateResponsibility
in interface ResponsibilityService
responsibility
- the responsibility to update
RiceIllegalArgumentException
RiceIllegalStateException
public Responsibility getResponsibility(String id)
ResponsibilityService
Responsibility
from an id.
This method will return null if the responsibility does not exist.
getResponsibility
in interface ResponsibilityService
id
- the unique id to retrieve the responsibility by. cannot be null or blank.
Responsibility
or nullpublic Responsibility findRespByNamespaceCodeAndName(String namespaceCode, String name)
ResponsibilityService
Responsibility
for namespaceCode and name.
findRespByNamespaceCodeAndName
in interface ResponsibilityService
namespaceCode
- the namespace code. cannot be null or blank.name
- the responsibility name. cannot be null or blank.
Responsibility
or nullpublic Template getResponsibilityTemplate(String id)
ResponsibilityService
Template
from an id.
This method will return null if the template does not exist.
getResponsibilityTemplate
in interface ResponsibilityService
id
- the unique id to retrieve the template by. cannot be null or blank.
Template
or nullpublic Template findRespTemplateByNamespaceCodeAndName(String namespaceCode, String name)
ResponsibilityService
Template
for namespaceCode and name.
findRespTemplateByNamespaceCodeAndName
in interface ResponsibilityService
namespaceCode
- the namespace code. cannot be null or blank.name
- the template name. cannot be null or blank.
Template
or nullpublic boolean hasResponsibility(String principalId, String namespaceCode, String respName, Map<String,String> qualification, Map<String,String> responsibilityDetails)
ResponsibilityService
hasResponsibility
in interface ResponsibilityService
principalId
- the principal id to check. cannot be null or blank.namespaceCode
- the namespace code. cannot be null or blank.respName
- the responsibility name. cannot be null or blank.qualification
- the qualification for the responsibility. cannot be null.responsibilityDetails
- the responsibility details. cannot be null.
public boolean hasResponsibilityByTemplateName(String principalId, String namespaceCode, String respTemplateName, Map<String,String> qualification, Map<String,String> responsibilityDetails)
ResponsibilityService
hasResponsibilityByTemplateName
in interface ResponsibilityService
principalId
- the principal id to check. cannot be null or blank.namespaceCode
- the namespace code. cannot be null or blank.respTemplateName
- the responsibility template name. cannot be null or blank.qualification
- the qualification for the responsibility. cannot be null.responsibilityDetails
- the responsibility details. cannot be null.
public List<ResponsibilityAction> getResponsibilityActions(String namespaceCode, String responsibilityName, Map<String,String> qualification, Map<String,String> responsibilityDetails)
ResponsibilityService
ResponsibilityAction
based on passed in responsibility information.
getResponsibilityActions
in interface ResponsibilityService
namespaceCode
- the namespace code. cannot be null or blank.responsibilityName
- the responsibility name. cannot be null or blank.qualification
- the qualification for the responsibility. cannot be null.responsibilityDetails
- the responsibility details. cannot be null.
public List<ResponsibilityAction> getResponsibilityActionsByTemplateName(String namespaceCode, String respTemplateName, Map<String,String> qualification, Map<String,String> responsibilityDetails)
ResponsibilityService
ResponsibilityAction
based on passed in responsibility template information.
getResponsibilityActionsByTemplateName
in interface ResponsibilityService
namespaceCode
- the namespace code. cannot be null or blank.respTemplateName
- the responsibility name. cannot be null or blank.qualification
- the qualification for the responsibility. cannot be null.responsibilityDetails
- the responsibility details. cannot be null.
public List<String> getRoleIdsForResponsibility(String id, Map<String,String> qualification)
ResponsibilityService
getRoleIdsForResponsibility
in interface ResponsibilityService
id
- the unique id to retrieve the roleIds for. cannot be null or blank.qualification
- the qualification for the responsibility. cannot be null.
public ResponsibilityQueryResults findResponsibilities(QueryByCriteria queryByCriteria)
ResponsibilityService
findResponsibilities
in interface ResponsibilityService
queryByCriteria
- the criteria. Cannot be null.
public TemplateQueryResults findResponsibilityTemplates(QueryByCriteria queryByCriteria)
ResponsibilityService
findResponsibilityTemplates
in interface ResponsibilityService
queryByCriteria
- the criteria. Cannot be null.
public void setBusinessObjectService(BusinessObjectService businessObjectService)
public void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
public void setDefaultResponsibilityTypeService(ResponsibilityTypeService defaultResponsibilityTypeService)
public void setKimTypeInfoService(KimTypeInfoService kimTypeInfoService)
public void setRoleService(RoleService roleService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |