|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.coreservice.impl.component.ComponentServiceImpl
@Transactional public class ComponentServiceImpl
Reference implementation of the ComponentService
.
Constructor Summary | |
---|---|
ComponentServiceImpl()
|
Method Summary | |
---|---|
protected String |
calculateChecksum(List<Component> components)
Calculates the checksum for the list of components. |
List<Component> |
getActiveComponentsByNamespaceCode(String namespaceCode)
This will return a list of active Component with the
given namespaceCode |
List<Component> |
getAllComponentsByNamespaceCode(String namespaceCode)
This will return a list of all Component with the
given namespaceCode |
BusinessObjectService |
getBusinessObjectService()
|
Component |
getComponentByCode(String namespaceCode,
String componentCode)
This will return a Component with the given namespaceCode and
componentCode |
ComponentSetDao |
getComponentSetDao()
|
List<Component> |
getDerivedComponentSet(String componentSetId)
This will return a list of derived Component with the
given componentSetId |
void |
publishDerivedComponents(String componentSetId,
List<Component> components)
Publishes the given set of derived components to make them available to the component system. |
void |
setBusinessObjectService(BusinessObjectService businessObjectService)
|
void |
setComponentSetDao(ComponentSetDao componentSetDao)
|
protected List<Component> |
translateCollections(Collection<org.kuali.rice.coreservice.impl.component.ComponentBo> componentBos,
Collection<org.kuali.rice.coreservice.impl.component.DerivedComponentBo> derivedComponentBos)
|
protected void |
updateDerivedComponents(String componentSetId,
List<Component> components)
|
protected List<Component> |
validateAndNormalizeComponents(String componentSetId,
List<Component> components)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentServiceImpl()
Method Detail |
---|
public Component getComponentByCode(String namespaceCode, String componentCode)
ComponentService
Component
with the given namespaceCode and
componentCode
getComponentByCode
in interface ComponentService
namespaceCode
- the namespaceCode of the componentcomponentCode
- the componentCode of the component
public List<Component> getAllComponentsByNamespaceCode(String namespaceCode)
ComponentService
Component
with the
given namespaceCode
getAllComponentsByNamespaceCode
in interface ComponentService
namespaceCode
- the namespaceCode of the component
public List<Component> getActiveComponentsByNamespaceCode(String namespaceCode)
ComponentService
Component
with the
given namespaceCode
getActiveComponentsByNamespaceCode
in interface ComponentService
namespaceCode
- the namespaceCode of the component
public List<Component> getDerivedComponentSet(String componentSetId)
ComponentService
Component
with the
given componentSetId
getDerivedComponentSet
in interface ComponentService
componentSetId
- the componentSetId of the component
public void publishDerivedComponents(String componentSetId, List<Component> components)
ComponentService
When invoked, the set of components known to the component system for the given component set id will be replaced with the given list. Any previously published components for the component set id which are not contained within the given list will be deleted.
The componentSetId
should be an identifier generated by the client application which uniquely
identifies the component set being published (either newly published or updated). A simple value to use would
be the applicationId
of the client application but this would mean an application could only ever publish
a single custom component set. So the applicationId
could also be combined with some additional
information on the source of the components being published if a particular application needs to publish custom
components from multiple sources.
The componentSetId
on each of the components supplied in the list must either be null or equal to the
component set id that is passed to this method, otherwise a RiceIllegalArgumentException
will be thrown.
publishDerivedComponents
in interface ComponentService
componentSetId
- an id that uniquely identifies this set of components being checked. The service will use
this to track the components being publishedcomponents
- the components to publish, may be empty or null, in which case all published components for the
given component set id will be deleted from the component system if any existprotected List<Component> validateAndNormalizeComponents(String componentSetId, List<Component> components)
protected String calculateChecksum(List<Component> components)
protected void updateDerivedComponents(String componentSetId, List<Component> components)
protected List<Component> translateCollections(Collection<org.kuali.rice.coreservice.impl.component.ComponentBo> componentBos, Collection<org.kuali.rice.coreservice.impl.component.DerivedComponentBo> derivedComponentBos)
public BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(BusinessObjectService businessObjectService)
public ComponentSetDao getComponentSetDao()
public void setComponentSetDao(ComponentSetDao componentSetDao)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |