org.kuali.rice.kew.impl.actionlist
Class ActionListCustomizationHandlerServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.impl.actionlist.ActionListCustomizationHandlerServiceImpl
All Implemented Interfaces:
ActionListCustomizationHandlerService

public class ActionListCustomizationHandlerServiceImpl
extends Object
implements ActionListCustomizationHandlerService

Reference implementation of the ActionListCustomizationHandlerService.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ActionListCustomizationHandlerServiceImpl()
           
 
Method Summary
 List<ActionItemCustomization> customizeActionList(String principalId, List<ActionItem> actionItems)
          Returns a list of Action Item Customizations from the given list of Action Items and Principal ID.
 ExtensionRepositoryService getExtensionRepositoryService()
          Loads RuleValidationAttribute implementation class via ExtensionRepositoryService
protected  CustomActionListAttribute loadAttribute(String attributeName)
          Loads CustomActionListAttribute implementation class via ExtensionRepositoryService
 void setExtensionRepositoryService(ExtensionRepositoryService extensionRepositoryService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionListCustomizationHandlerServiceImpl

public ActionListCustomizationHandlerServiceImpl()
Method Detail

customizeActionList

public List<ActionItemCustomization> customizeActionList(String principalId,
                                                         List<ActionItem> actionItems)
                                                  throws RiceIllegalArgumentException
Description copied from interface: ActionListCustomizationHandlerService
Returns a list of Action Item Customizations from the given list of Action Items and Principal ID.

This method essentially invokes CustomActionListAttribute??? DocumentSecurityAttribute#isAuthorizedForDocument(String, org.kuali.rice.kew.api.document.Document) method for each of the security attributes supplied in the document security directives, passing the associated list of document ids.

Specified by:
customizeActionList in interface ActionListCustomizationHandlerService
Parameters:
principalId - the id of the Principal ???
actionItems - the list of Action Items to be customized.
Returns:
the list of Action Item Customizations
Throws:
RiceIllegalArgumentException - if the given principalId is a null or blank value

loadAttribute

protected CustomActionListAttribute loadAttribute(String attributeName)
Loads CustomActionListAttribute implementation class via ExtensionRepositoryService

Parameters:
attributeName - the CustomActionListAttribute name
Returns:
instance of the CustomActionListAttribute implementation class
Throws:
RiceIllegalArgumentException - if specified attribute name cannot be found or loaded

getExtensionRepositoryService

public ExtensionRepositoryService getExtensionRepositoryService()
Loads RuleValidationAttribute implementation class via ExtensionRepositoryService

Parameters:
attributeName - the RuleValidationAttribute name
Returns:
instance of the RuleValidationAttribute implementation class
Throws:
RiceIllegalArgumentException - if specified attribute name cannot be found or loaded

setExtensionRepositoryService

public void setExtensionRepositoryService(ExtensionRepositoryService extensionRepositoryService)


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