org.kuali.rice.kim.impl.responsibility
Class ResponsibilityServiceImpl

java.lang.Object
  extended by org.kuali.rice.kim.impl.responsibility.ResponsibilityServiceImpl
All Implemented Interfaces:
ResponsibilityService

public class ResponsibilityServiceImpl
extends Object
implements ResponsibilityService


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)
          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.
 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 up ev a Responsibility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponsibilityServiceImpl

public ResponsibilityServiceImpl()
Method Detail

createResponsibility

public Responsibility createResponsibility(Responsibility responsibility)
                                    throws RiceIllegalArgumentException,
                                           RiceIllegalStateException
Description copied from interface: ResponsibilityService
This will create a Responsibility exactly like the responsibility passed in.

Specified by:
createResponsibility in interface ResponsibilityService
Parameters:
responsibility - the responsibility to create
Returns:
the id of the newly created object. will never be null.
Throws:
RiceIllegalArgumentException
RiceIllegalStateException

updateResponsibility

public Responsibility updateResponsibility(Responsibility responsibility)
                                    throws RiceIllegalArgumentException,
                                           RiceIllegalStateException
Description copied from interface: ResponsibilityService
This will up ev a Responsibility.

Specified by:
updateResponsibility in interface ResponsibilityService
Parameters:
responsibility - the responsibility to update
Throws:
RiceIllegalArgumentException
RiceIllegalStateException

getResponsibility

public Responsibility getResponsibility(String id)
                                 throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Gets a Responsibility from an id.

This method will return null if the responsibility does not exist.

Specified by:
getResponsibility in interface ResponsibilityService
Parameters:
id - the unique id to retrieve the responsibility by. cannot be null or blank.
Returns:
a Responsibility or null
Throws:
RiceIllegalArgumentException

findRespByNamespaceCodeAndName

public Responsibility findRespByNamespaceCodeAndName(String namespaceCode,
                                                     String name)
                                              throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Finds a Responsibility for namespaceCode and name.

Specified by:
findRespByNamespaceCodeAndName in interface ResponsibilityService
Parameters:
namespaceCode - the namespace code. cannot be null or blank.
name - the responsibility name. cannot be null or blank.
Returns:
a Responsibility or null
Throws:
RiceIllegalArgumentException

getResponsibilityTemplate

public Template getResponsibilityTemplate(String id)
                                   throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Gets a Template from an id.

This method will return null if the template does not exist.

Specified by:
getResponsibilityTemplate in interface ResponsibilityService
Parameters:
id - the unique id to retrieve the template by. cannot be null or blank.
Returns:
a Template or null
Throws:
RiceIllegalArgumentException

findRespTemplateByNamespaceCodeAndName

public Template findRespTemplateByNamespaceCodeAndName(String namespaceCode,
                                                       String name)
                                                throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Finds a Template for namespaceCode and name.

Specified by:
findRespTemplateByNamespaceCodeAndName in interface ResponsibilityService
Parameters:
namespaceCode - the namespace code. cannot be null or blank.
name - the template name. cannot be null or blank.
Returns:
a Template or null
Throws:
RiceIllegalArgumentException

hasResponsibility

public boolean hasResponsibility(String principalId,
                                 String namespaceCode,
                                 String respName,
                                 Map<String,String> qualification)
                          throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Checks in a given principal id has a responsibility using the passed in responsibility information.

Specified by:
hasResponsibility in interface ResponsibilityService
Parameters:
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.
Returns:
true is principal has responsibility
Throws:
RiceIllegalArgumentException

hasResponsibilityByTemplate

public boolean hasResponsibilityByTemplate(String principalId,
                                           String namespaceCode,
                                           String respTemplateName,
                                           Map<String,String> qualification,
                                           Map<String,String> responsibilityDetails)
                                    throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Checks in a given principal id has a responsibility using the passed in responsibility template information.

Specified by:
hasResponsibilityByTemplate in interface ResponsibilityService
Parameters:
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.
Returns:
true is principal has responsibility
Throws:
RiceIllegalArgumentException

getResponsibilityActions

public List<ResponsibilityAction> getResponsibilityActions(String namespaceCode,
                                                           String responsibilityName,
                                                           Map<String,String> qualification)
                                                    throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Gets a List of ResponsibilityAction based on passed in responsibility information.

Specified by:
getResponsibilityActions in interface ResponsibilityService
Parameters:
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.
Returns:
an immutable list of ResponsibilityAction. Will not return null.
Throws:
RiceIllegalArgumentException

getResponsibilityActionsByTemplate

public List<ResponsibilityAction> getResponsibilityActionsByTemplate(String namespaceCode,
                                                                     String respTemplateName,
                                                                     Map<String,String> qualification,
                                                                     Map<String,String> responsibilityDetails)
                                                              throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Gets a List of ResponsibilityAction based on passed in responsibility template information.

Specified by:
getResponsibilityActionsByTemplate in interface ResponsibilityService
Parameters:
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. can be null.
Returns:
an immutable list of ResponsibilityAction. Will not return null.
Throws:
RiceIllegalArgumentException

getRoleIdsForResponsibility

public List<String> getRoleIdsForResponsibility(String id)
                                         throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
Gets a List of roleIds that the responsibility is associated with.

Specified by:
getRoleIdsForResponsibility in interface ResponsibilityService
Parameters:
id - the unique id to retrieve the roleIds for. cannot be null or blank.
Returns:
an immutable list of roleIds. Will not return null.
Throws:
RiceIllegalArgumentException

findResponsibilities

public ResponsibilityQueryResults findResponsibilities(QueryByCriteria queryByCriteria)
                                                throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
This method find Responsibilities based on a query criteria. The criteria cannot be null.

Specified by:
findResponsibilities in interface ResponsibilityService
Parameters:
queryByCriteria - the criteria. Cannot be null.
Returns:
query results. will never return null.
Throws:
RiceIllegalArgumentException

findResponsibilityTemplates

public TemplateQueryResults findResponsibilityTemplates(QueryByCriteria queryByCriteria)
                                                 throws RiceIllegalArgumentException
Description copied from interface: ResponsibilityService
This method find Responsibility Templates based on a query criteria. The criteria cannot be null.

Specified by:
findResponsibilityTemplates in interface ResponsibilityService
Parameters:
queryByCriteria - the criteria. Cannot be null.
Returns:
query results. will never return null.
Throws:
RiceIllegalArgumentException

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)

setCriteriaLookupService

public void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)

setDefaultResponsibilityTypeService

public void setDefaultResponsibilityTypeService(ResponsibilityTypeService defaultResponsibilityTypeService)

setKimTypeInfoService

public void setKimTypeInfoService(KimTypeInfoService kimTypeInfoService)

setRoleService

public void setRoleService(RoleService roleService)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.