public interface ComponentService
Modifier and Type | Method and Description |
---|---|
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 |
Component |
getComponentByCode(String namespaceCode,
String componentCode)
This will return a
Component with the given namespaceCode and
componentCode |
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.
|
Component getComponentByCode(String namespaceCode, String componentCode) throws RiceIllegalArgumentException
Component
with the given namespaceCode and
componentCodenamespaceCode
- the namespaceCode of the componentcomponentCode
- the componentCode of the componentRiceIllegalArgumentException
- if the namespaceCode or componentCode is null or blankList<Component> getAllComponentsByNamespaceCode(String namespaceCode) throws RiceIllegalArgumentException
Component
with the
given namespaceCodenamespaceCode
- the namespaceCode of the componentRiceIllegalArgumentException
- if the namespaceCode is null or blankList<Component> getActiveComponentsByNamespaceCode(String namespaceCode) throws RiceIllegalArgumentException
Component
with the
given namespaceCodenamespaceCode
- the namespaceCode of the componentRiceIllegalArgumentException
- if the namespaceCode is null or blankList<Component> getDerivedComponentSet(String componentSetId) throws RiceIllegalArgumentException
Component
with the
given componentSetIdcomponentSetId
- the componentSetId of the componentRiceIllegalArgumentException
- if the componentSetId is null or blankvoid publishDerivedComponents(String componentSetId, List<Component> components) throws RiceIllegalArgumentException
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.
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 existRiceIllegalArgumentException
- if componentSetId is a null or blank valueRiceIllegalArgumentException
- if any of the components in the given list have a non-null componentSetId
which does not match the componentSetId parameter supplied to this methodCopyright © 2005–2014 The Kuali Foundation. All rights reserved.