|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContentProviderRegistryFace
This interface describes the functions of the content provider registry. This class administers all functions concerning the content providers and serves as central contact point for everything which is content provider or content folder related.
| Method Summary | |
|---|---|
java.lang.Long |
addContentFolder(ContentFolderModelFace contentFolder)
With this method a new not yet existing content folder can be added. |
java.util.List<ContentFolderModelFace> |
getAllContentFolders()
This method retrieves all content folders. |
ContentFolderModelFace |
getContentFolderById(java.lang.Long id)
This method retrieves a content folder with the specified id. |
ContentFolderModelFace |
getContentFolderInstance()
This method is a factory for a content folder instance to be independent of the underlying implementation. |
java.util.List<ContentFolderModelFace> |
getContentFolders(int from,
int to)
This method retrieves content folders. |
ContentFace |
getContentInstance()
This method is a factory for a content instance to be independent of the underlying implementation. |
ContentManipulationFace |
getContentManipulatorInstance(java.lang.String typeID)
Call this method if you need a content manipulator instance of the specified content provider. |
ContentProviderFace |
getContentProviderInstance(java.lang.String typeID)
Call this method if you need an instance of a specified content provider . |
java.util.List<java.lang.String> |
getContentProviders()
This method retrieves a List of content providers. |
ContentRetrievalFace |
getContentRetrievalInstance(java.lang.String typeID)
Call this method if you need a content retrieval instance of the specified content provider. |
ContentSubmitterFace |
getContentSubmitterInstance(java.lang.String typeID)
Call this method if you need a content submitter instance of the specified content provider. |
java.util.Map<java.lang.String,PropertyModelFace> |
getDefaultProperties()
This methods returns a list of spcp7 default properties. |
void |
registerContentFolderActionListener(ContentFolderActionListenerFace listener)
This methods registers a listener for content folder actions. |
void |
removeContentFolder(java.lang.Long id)
With this method a content folder can be removed by its id. |
void |
removeContentFolderActionListener(ContentFolderActionListenerFace listener)
This method removes the specified listener from the content folder action listener list. |
java.lang.Long |
updateContentFolder(ContentFolderModelFace contentFolder)
With this method a yet existing content folder can be updated. |
| Method Detail |
|---|
java.util.List<java.lang.String> getContentProviders()
getContentManipulatorInstance(String),
getContentProviderInstance(String),
getContentRetrievalInstance(String) or
getContentSubmitterInstance(String)
java.util.List<ContentFolderModelFace> getAllContentFolders()
throws ContentFoldersCouldNotBeRetrievedException
ContentFoldersCouldNotBeRetrievedException
java.util.List<ContentFolderModelFace> getContentFolders(int from,
int to)
throws ContentFoldersCouldNotBeRetrievedException,
RangeNotValidException
from - The lower borderto - The upper border
RangeNotValidException - If the provided range is not valid (eg. from bigger than
to)
ContentFoldersCouldNotBeRetrievedException
java.lang.Long addContentFolder(ContentFolderModelFace contentFolder)
throws ContentFolderValidationException,
ContentProviderNotAvailableException,
PropertyNumberValidationException,
PropertyBooleanValidationException
updateContentFolder(ContentFolderModelFace). Properties of the
content folder and the default properties of the gallery will be merged
so that properties of the content folder overwrite the default properties
of the image gallery if the keys are the same.
contentFolder - The content folder which should be added. The id should
not be set. If it is set, it will be overwritten.
ContentFolderValidationException
ContentProviderNotAvailableException
PropertyNumberValidationException
PropertyBooleanValidationException
java.lang.Long updateContentFolder(ContentFolderModelFace contentFolder)
throws ContentFolderValidationException,
ContentProviderNotAvailableException,
PropertyNumberValidationException,
PropertyBooleanValidationException
ContentFolderModelFace.getId() field has to be set. All
values (set or unset) of the provided content folder will be overwritten
in the older persisted instance.
contentFolder - The new content folder which with new values which should
replace the old one with the same id
ContentFolderValidationException
ContentProviderNotAvailableException
PropertyNumberValidationException
PropertyBooleanValidationExceptionvoid removeContentFolder(java.lang.Long id)
id - The id of the content folder which should be removed
ContentProviderFace getContentProviderInstance(java.lang.String typeID)
throws ContentProviderNotAvailableException
getContentProviders().
typeID - The typeID of the content provider which should be
retrieved.
ContentProviderNotAvailableException
ContentSubmitterFace getContentSubmitterInstance(java.lang.String typeID)
throws ContentProviderNotAvailableException,
FeatureNotProvidedException
typeID - The typeID of the content provider from which the content
submitter instance should be retrieved.
ContentProviderNotAvailableException
FeatureNotProvidedException - If submission is not available for the specified content
provider
ContentManipulationFace getContentManipulatorInstance(java.lang.String typeID)
throws ContentProviderNotAvailableException,
FeatureNotProvidedException
typeID - The typeID of the content provider from which the content
manipulator instance should be retrieved.
ContentProviderNotAvailableException
FeatureNotProvidedException - If manipulation is not available for the specified
content provider
ContentRetrievalFace getContentRetrievalInstance(java.lang.String typeID)
throws ContentProviderNotAvailableException
typeID - The typeID of the content provider from which the content
retrieval instance should be retrieved.
ContentProviderNotAvailableExceptionContentFolderModelFace getContentFolderInstance()
ContentFolderModelFace getContentFolderById(java.lang.Long id)
id - The id of the content folder which should be retrieved
ContentFace getContentInstance()
void registerContentFolderActionListener(ContentFolderActionListenerFace listener)
listener - A class implementing
ContentFolderActionListenerFacevoid removeContentFolderActionListener(ContentFolderActionListenerFace listener)
listener - A class implementing
ContentFolderActionListenerFacejava.util.Map<java.lang.String,PropertyModelFace> getDefaultProperties()
ContentProviderFace. Properties of ContentProviderFace
implementations and these default properties will be merged when adding a
new content folder. In this case properties of the content provider with
the same PropertyModelFace.setSchluessel(String) will overwrite
properties of this method.
PropertyModelFace.setSchluessel(String))
value associations of default properties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||