org.kuali.rice.kew.impl.extension
Class ExtensionRepositoryServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.impl.extension.ExtensionRepositoryServiceImpl
All Implemented Interfaces:
ExtensionRepositoryService

public class ExtensionRepositoryServiceImpl
extends Object
implements ExtensionRepositoryService

Reference implementation of the ExtensionRepositoryService. This implementation essentially sits on top of the legacy "RuleAttribute" service.

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

Method Summary
 ExtensionDefinition getExtensionById(String id)
          Returns the ExtensionDefinition of the for the given id.
 ExtensionDefinition getExtensionByName(String name)
          Returns the ExtensionDefinition of the for the given name.
 List<ExtensionDefinition> getExtensionsByResourceDescriptor(String resourceDescriptor)
          Returns the ExtensionDefinition of the for the given resourceDescriptor.
 void setRuleAttributeService(RuleAttributeService ruleAttributeService)
          Sets the rule attribute service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExtensionById

public ExtensionDefinition getExtensionById(String id)
                                     throws RiceIllegalArgumentException
Description copied from interface: ExtensionRepositoryService
Returns the ExtensionDefinition of the for the given id.

Specified by:
getExtensionById in interface ExtensionRepositoryService
Parameters:
id - the id to search by.
Returns:
the extension definition found for the matching rule attribute service
Throws:
RiceIllegalArgumentException - if id is null or blank

getExtensionByName

public ExtensionDefinition getExtensionByName(String name)
                                       throws RiceIllegalArgumentException
Description copied from interface: ExtensionRepositoryService
Returns the ExtensionDefinition of the for the given name.

Specified by:
getExtensionByName in interface ExtensionRepositoryService
Parameters:
name - the name to search by.
Returns:
the extension definition found for the matching rule attribute service
Throws:
RiceIllegalArgumentException - if name is null or blank

getExtensionsByResourceDescriptor

public List<ExtensionDefinition> getExtensionsByResourceDescriptor(String resourceDescriptor)
                                                            throws RiceIllegalArgumentException
Description copied from interface: ExtensionRepositoryService
Returns the ExtensionDefinition of the for the given resourceDescriptor.

Specified by:
getExtensionsByResourceDescriptor in interface ExtensionRepositoryService
Parameters:
resourceDescriptor - the resourceDescriptor to search by.
Returns:
the extension definition found for the matching rule attribute service
Throws:
RiceIllegalArgumentException - if resourceDescriptor is null or blank

setRuleAttributeService

public void setRuleAttributeService(RuleAttributeService ruleAttributeService)
Sets the rule attribute service.

Parameters:
ruleAttributeService - the rule attribute service to set.


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