| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.core.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) | 
|  List<Component> | getAllComponentsByNamespaceCode(String namespaceCode) | 
|  BusinessObjectService | getBusinessObjectService() | 
|  Component | getComponentByCode(String namespaceCode,
                                     String componentCode) | 
|  ComponentSetDao | getComponentSetDao() | 
|  List<Component> | getDerivedComponentSet(String 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.core.impl.component.ComponentBo> componentBos,
                                         Collection<org.kuali.rice.core.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)
getComponentByCode in interface ComponentServicepublic List<Component> getAllComponentsByNamespaceCode(String namespaceCode)
getAllComponentsByNamespaceCode in interface ComponentServicepublic List<Component> getActiveComponentsByNamespaceCode(String namespaceCode)
getActiveComponentsByNamespaceCode in interface ComponentServicepublic List<Component> getDerivedComponentSet(String componentSetId)
getDerivedComponentSet in interface ComponentService
public void publishDerivedComponents(String componentSetId,
                                     List<Component> components)
ComponentServiceWhen 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 an IllegalArgumentException will be thrown.
publishDerivedComponents in interface ComponentServicecomponentSetId - 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 exist
protected 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.core.impl.component.ComponentBo> componentBos,
                                               Collection<org.kuali.rice.core.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 | |||||||||