|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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. |
List<Responsibility> |
findResponsibilitiesByTemplate(String namespaceCode,
String templateName)
Return the responsibilities for the given unique combination of namespace, and responsibility template name. |
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. |
DataObjectService |
getDataObjectService()
|
Responsibility |
getResponsibility(String id)
Gets a Responsibility from an id. |
List<ResponsibilityAction> |
getResponsibilityActions(String namespaceCode,
String responsibilityName,
Map<String,String> qualification)
Gets a List of ResponsibilityAction based on passed in responsibility information. |
List<ResponsibilityAction> |
getResponsibilityActionsByTemplate(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)
Gets a List of roleIds that the responsibility is associated with. |
boolean |
hasResponsibility(String principalId,
String namespaceCode,
String respName,
Map<String,String> qualification)
Checks in a given principal id has a responsibility using the passed in responsibility information. |
boolean |
hasResponsibilityByTemplate(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. |
protected void |
logResponsibilityCheck(String namespaceCode,
String responsibilityName,
Map<String,String> responsibilityDetails,
Map<String,String> qualification)
|
void |
setDataObjectService(DataObjectService dataObjectService)
|
void |
setDefaultResponsibilityTypeService(ResponsibilityTypeService defaultResponsibilityTypeService)
|
void |
setKimTypeInfoService(KimTypeInfoService kimTypeInfoService)
|
void |
setRoleService(RoleService roleService)
|
Responsibility |
updateResponsibility(Responsibility responsibility)
This will up ev 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
ResponsibilityServiceResponsibility exactly like the responsibility passed in.
createResponsibility in interface ResponsibilityServiceresponsibility - the responsibility to create
RiceIllegalArgumentException - if the responsibility is null
RiceIllegalStateException - if the responsibility is already existing in the system
public Responsibility updateResponsibility(Responsibility responsibility)
throws RiceIllegalArgumentException,
RiceIllegalStateException
ResponsibilityServiceResponsibility.
updateResponsibility in interface ResponsibilityServiceresponsibility - the responsibility to update
RiceIllegalArgumentException - if the responsibility is null
RiceIllegalStateException - if the responsibility does not exist in the system
public Responsibility getResponsibility(String id)
throws RiceIllegalArgumentException
ResponsibilityServiceResponsibility from an id.
This method will return null if the responsibility does not exist.
getResponsibility in interface ResponsibilityServiceid - the unique id to retrieve the responsibility by. cannot be null or blank.
Responsibility or null
RiceIllegalArgumentException - if the id is null or blank
public Responsibility findRespByNamespaceCodeAndName(String namespaceCode,
String name)
throws RiceIllegalArgumentException
ResponsibilityServiceResponsibility for namespaceCode and name.
findRespByNamespaceCodeAndName in interface ResponsibilityServicenamespaceCode - the namespace code. cannot be null or blank.name - the responsibility name. cannot be null or blank.
Responsibility or null
RiceIllegalArgumentException - if the id or namespaceCode is null or blank
public Template getResponsibilityTemplate(String id)
throws RiceIllegalArgumentException
ResponsibilityServiceTemplate from an id.
This method will return null if the template does not exist.
getResponsibilityTemplate in interface ResponsibilityServiceid - the unique id to retrieve the template by. cannot be null or blank.
Template or null
RiceIllegalArgumentException - if the id is null or blank
public Template findRespTemplateByNamespaceCodeAndName(String namespaceCode,
String name)
throws RiceIllegalArgumentException
ResponsibilityServiceTemplate for namespaceCode and name.
findRespTemplateByNamespaceCodeAndName in interface ResponsibilityServicenamespaceCode - the namespace code. cannot be null or blank.name - the template name. cannot be null or blank.
Template or null
RiceIllegalArgumentException - if the id or namespaceCode is null or blank
public boolean hasResponsibility(String principalId,
String namespaceCode,
String respName,
Map<String,String> qualification)
throws RiceIllegalArgumentException
ResponsibilityService
hasResponsibility in interface ResponsibilityServiceprincipalId - 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.
RiceIllegalArgumentException - if the principalId, namespaceCode, respName is null or blank
public boolean hasResponsibilityByTemplate(String principalId,
String namespaceCode,
String respTemplateName,
Map<String,String> qualification,
Map<String,String> responsibilityDetails)
throws RiceIllegalArgumentException
ResponsibilityService
hasResponsibilityByTemplate in interface ResponsibilityServiceprincipalId - 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.
RiceIllegalArgumentException - if the principalId, namespaceCode, respName is null or blank
public List<ResponsibilityAction> getResponsibilityActions(String namespaceCode,
String responsibilityName,
Map<String,String> qualification)
throws RiceIllegalArgumentException
ResponsibilityServiceResponsibilityAction based on passed in responsibility information.
getResponsibilityActions in interface ResponsibilityServicenamespaceCode - 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.
RiceIllegalArgumentException - if the namespaceCode, respName is null or blank
public List<ResponsibilityAction> getResponsibilityActionsByTemplate(String namespaceCode,
String respTemplateName,
Map<String,String> qualification,
Map<String,String> responsibilityDetails)
throws RiceIllegalArgumentException
ResponsibilityServiceResponsibilityAction based on passed in responsibility template information.
getResponsibilityActionsByTemplate in interface ResponsibilityServicenamespaceCode - 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. can be null.
RiceIllegalArgumentException - if the namespaceCode, respName is null or blank
public List<String> getRoleIdsForResponsibility(String id)
throws RiceIllegalArgumentException
ResponsibilityService
getRoleIdsForResponsibility in interface ResponsibilityServiceid - the unique id to retrieve the roleIds for. cannot be null or blank.
RiceIllegalArgumentException - if the id is null or blank or if the qualification is null
public ResponsibilityQueryResults findResponsibilities(QueryByCriteria queryByCriteria)
throws RiceIllegalArgumentException
ResponsibilityService
findResponsibilities in interface ResponsibilityServicequeryByCriteria - the criteria. Cannot be null.
RiceIllegalArgumentException - if the queryByCriteria is null
public TemplateQueryResults findResponsibilityTemplates(QueryByCriteria queryByCriteria)
throws RiceIllegalArgumentException
ResponsibilityService
findResponsibilityTemplates in interface ResponsibilityServicequeryByCriteria - the criteria. Cannot be null.
RiceIllegalArgumentException - if the queryByCriteria is null
public List<Responsibility> findResponsibilitiesByTemplate(String namespaceCode,
String templateName)
ResponsibilityService
findResponsibilitiesByTemplate in interface ResponsibilityServicenamespaceCode - namespace code for permission. cannot be null or blank.templateName - name of permission template. cannot be null or blank.
Permission or nullpublic void setDefaultResponsibilityTypeService(ResponsibilityTypeService defaultResponsibilityTypeService)
public void setKimTypeInfoService(KimTypeInfoService kimTypeInfoService)
public void setRoleService(RoleService roleService)
protected void logResponsibilityCheck(String namespaceCode,
String responsibilityName,
Map<String,String> responsibilityDetails,
Map<String,String> qualification)
public DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||