org.kuali.rice.kew.impl.repository
Class KewTypeBoServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.impl.repository.KewTypeBoServiceImpl
All Implemented Interfaces:
KewTypeRepositoryService

public final class KewTypeBoServiceImpl
extends Object
implements KewTypeRepositoryService


Constructor Summary
KewTypeBoServiceImpl()
           
 
Method Summary
 KewTypeDefinition createKewType(KewTypeDefinition kewType)
          This overridden method creates a KewType if it does not already exist in the repository.
 void createKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
          This overridden method creates a KewTypeAttribute if it does not already exist in the repository.
 List<KewTypeDefinition> findAllTypes()
          Returns all KEW types
 List<KewTypeDefinition> findAllTypesByNamespace(String namespace)
          Returns all KEW types that for a given namespace.
 KewTypeDefinition getTypeById(String id)
          Lookup a kew type based on the given id.
 KewTypeDefinition getTypeByNameAndNamespace(String name, String namespace)
          Get a kew type object based on name and namespace
 void setBusinessObjectService(BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void updateKewType(KewTypeDefinition kewType)
          This overridden method updates an existing KewType
 void updateKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
          This overridden method updates an existing KewTypeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KewTypeBoServiceImpl

public KewTypeBoServiceImpl()
Method Detail

createKewType

public KewTypeDefinition createKewType(KewTypeDefinition kewType)
This overridden method creates a KewType if it does not already exist in the repository.

Specified by:
createKewType in interface KewTypeRepositoryService
Parameters:
kewType - - KewType
See Also:
KewTypeRepositoryService.createKewType(org.kuali.rice.kew.api.repository.type.KewTypeDefinition)

updateKewType

public void updateKewType(KewTypeDefinition kewType)
This overridden method updates an existing KewType

Specified by:
updateKewType in interface KewTypeRepositoryService
Parameters:
kewType - - KewType
See Also:
KewTypeRepositoryService.updateKewType(org.kuali.rice.kew.api.repository.type.KewTypeDefinition)

getTypeById

public KewTypeDefinition getTypeById(String id)
Description copied from interface: KewTypeRepositoryService
Lookup a kew type based on the given id.

Specified by:
getTypeById in interface KewTypeRepositoryService
Parameters:
id - the given kew type id
Returns:
a KewType object with the given id. A null reference is returned if an invalid or non-existant id is supplied.

getTypeByNameAndNamespace

public KewTypeDefinition getTypeByNameAndNamespace(String name,
                                                   String namespace)
Description copied from interface: KewTypeRepositoryService
Get a kew type object based on name and namespace

Specified by:
getTypeByNameAndNamespace in interface KewTypeRepositoryService
Parameters:
name - the given type name
namespace - the given type namespace
Returns:
A kew type object with the given namespace and name if one with that name and namespace exists. Otherwise, null is returned.

findAllTypesByNamespace

public List<KewTypeDefinition> findAllTypesByNamespace(String namespace)
Description copied from interface: KewTypeRepositoryService
Returns all KEW types that for a given namespace.

Specified by:
findAllTypesByNamespace in interface KewTypeRepositoryService
Returns:
all KEW types for a namespace

findAllTypes

public List<KewTypeDefinition> findAllTypes()
Description copied from interface: KewTypeRepositoryService
Returns all KEW types

Specified by:
findAllTypes in interface KewTypeRepositoryService
Returns:
all KEW types

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.

createKewTypeAttribute

public void createKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
This overridden method creates a KewTypeAttribute if it does not already exist in the repository.

Specified by:
createKewTypeAttribute in interface KewTypeRepositoryService
Parameters:
kewTypeAttribute - - KewTypeAttribute
See Also:
KewTypeRepositoryService.createKewTypeAttribute(org.kuali.rice.kew.api.repository.type.KewTypeAttribute)

updateKewTypeAttribute

public void updateKewTypeAttribute(KewTypeAttribute kewTypeAttribute)
This overridden method updates an existing KewTypeAttribute

Specified by:
updateKewTypeAttribute in interface KewTypeRepositoryService
Parameters:
kewTypeAttribute - - KewTypeAttribute
See Also:
KewTypeRepositoryService.updateKewTypeAttribute(org.kuali.rice.kew.api.repository.type.KewTypeAttribute)


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