|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectspcp7.imagegallery.abstractionlayer.impl.internal.ContentProviderRegistryImpl
public class ContentProviderRegistryImpl
| Constructor Summary | |
|---|---|
ContentProviderRegistryImpl()
Default constructor which initializes the default properties |
|
| 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 |
registerContentProvider(ContentProviderFace contentProvider)
Deprecated. |
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. |
void |
removeContentProvider(java.lang.String typeId)
Deprecated. |
void |
setApplicationContext(org.springframework.context.ApplicationContext arg0)
|
void |
setContentProviders(java.util.List<ContentProviderFace> contentProviders)
Injected by Spring |
void |
setCprValidation(CprValidation cprValidation)
Injected by Spring |
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
Injected by Spring |
void |
setGeneralValidationUtil(GeneralValidation generalValidationUtil)
Injected by Spring |
java.lang.Long |
updateContentFolder(ContentFolderModelFace contentFolder)
With this method a yet existing content folder can be updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentProviderRegistryImpl()
initDefaultProperties()| Method Detail |
|---|
public java.lang.Long addContentFolder(ContentFolderModelFace contentFolder)
throws ContentFolderValidationException,
ContentProviderNotAvailableException,
PropertyBooleanValidationException,
PropertyNumberValidationException
ContentProviderRegistryFaceContentProviderRegistryFace.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.
addContentFolder in interface ContentProviderRegistryFacecontentFolder - The content folder which should be added. The id should
not be set. If it is set, it will be overwritten.
ContentFolderValidationException
ContentProviderNotAvailableException
PropertyBooleanValidationException
PropertyNumberValidationExceptionContentProviderRegistryFace.addContentFolder(spcp7.imagegallery.abstractionlayer.face.persistence.ContentFolderModelFace)public void setEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
emf - public ContentFolderModelFace getContentFolderInstance()
ContentProviderRegistryFace
getContentFolderInstance in interface ContentProviderRegistryFaceContentProviderRegistryFace.getContentFolderInstance()
public ContentManipulationFace getContentManipulatorInstance(java.lang.String typeID)
throws ContentProviderNotAvailableException,
FeatureNotProvidedException
ContentProviderRegistryFace
getContentManipulatorInstance in interface ContentProviderRegistryFacetypeID - 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 providerContentProviderRegistryFace.getContentManipulatorInstance(java.lang.String)
public ContentRetrievalFace getContentRetrievalInstance(java.lang.String typeID)
throws ContentProviderNotAvailableException
ContentProviderRegistryFace
getContentRetrievalInstance in interface ContentProviderRegistryFacetypeID - The typeID of the content provider from which the content
retrieval instance should be retrieved.
ContentProviderNotAvailableExceptionContentProviderRegistryFace.getContentRetrievalInstance(java.lang.String)
public ContentSubmitterFace getContentSubmitterInstance(java.lang.String typeID)
throws ContentProviderNotAvailableException,
FeatureNotProvidedException
ContentProviderRegistryFace
getContentSubmitterInstance in interface ContentProviderRegistryFacetypeID - 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
providerContentProviderRegistryFace.getContentSubmitterInstance(java.lang.String)public java.util.List<ContentFolderModelFace> getAllContentFolders()
ContentProviderRegistryFace
getAllContentFolders in interface ContentProviderRegistryFaceContentProviderRegistryFace.getAllContentFolders()
public java.util.List<ContentFolderModelFace> getContentFolders(int from,
int to)
throws RangeNotValidException
ContentProviderRegistryFace
getContentFolders in interface ContentProviderRegistryFacefrom - The lower borderto - The upper border
RangeNotValidException - If the provided range is not valid (eg. from bigger than
to)ContentProviderRegistryFace.getContentFolders(int,
int)
public ContentProviderFace getContentProviderInstance(java.lang.String typeID)
throws ContentProviderNotAvailableException
ContentProviderRegistryFaceContentProviderRegistryFace.getContentProviders().
getContentProviderInstance in interface ContentProviderRegistryFacetypeID - The typeID of the content provider which should be
retrieved.
ContentProviderNotAvailableExceptionContentProviderRegistryFace.getContentProviderInstance(java.lang.String)public java.util.List<java.lang.String> getContentProviders()
ContentProviderRegistryFaceContentProviderRegistryFace.getContentManipulatorInstance(String),
ContentProviderRegistryFace.getContentProviderInstance(String),
ContentProviderRegistryFace.getContentRetrievalInstance(String) or
ContentProviderRegistryFace.getContentSubmitterInstance(String)
getContentProviders in interface ContentProviderRegistryFaceContentProviderRegistryFace.getContentProviders()public void registerContentProvider(ContentProviderFace contentProvider)
contentProvider - public void removeContentFolder(java.lang.Long id)
ContentProviderRegistryFace
removeContentFolder in interface ContentProviderRegistryFaceid - The id of the content folder which should be removedContentProviderRegistryFace.removeContentFolder(java.lang.Long)public void removeContentProvider(java.lang.String typeId)
typeId -
public java.lang.Long updateContentFolder(ContentFolderModelFace contentFolder)
throws ContentFolderValidationException,
ContentProviderNotAvailableException,
PropertyBooleanValidationException,
PropertyNumberValidationException
ContentProviderRegistryFaceContentFolderModelFace.getId() field has to be set. All
values (set or unset) of the provided content folder will be overwritten
in the older persisted instance.
updateContentFolder in interface ContentProviderRegistryFacecontentFolder - The new content folder which with new values which should
replace the old one with the same id
ContentFolderValidationException
ContentProviderNotAvailableException
PropertyBooleanValidationException
PropertyNumberValidationExceptionContentProviderRegistryFace.updateContentFolder(spcp7.imagegallery.abstractionlayer.face.persistence.ContentFolderModelFace)public ContentFolderModelFace getContentFolderById(java.lang.Long id)
ContentProviderRegistryFace
getContentFolderById in interface ContentProviderRegistryFaceid - The id of the content folder which should be retrieved
ContentProviderRegistryFace.getContentFolderById(java.lang.Long)public ContentFace getContentInstance()
ContentProviderRegistryFace
getContentInstance in interface ContentProviderRegistryFaceContentProviderRegistryFace.getContentInstance()public java.util.Map<java.lang.String,PropertyModelFace> getDefaultProperties()
ContentProviderRegistryFaceContentProviderFace. 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.
getDefaultProperties in interface ContentProviderRegistryFacePropertyModelFace.setSchluessel(String))
value associations of default properties.ContentProviderRegistryFace.getDefaultProperties()public void registerContentFolderActionListener(ContentFolderActionListenerFace listener)
ContentProviderRegistryFace
registerContentFolderActionListener in interface ContentProviderRegistryFacelistener - A class implementing
ContentFolderActionListenerFaceContentProviderRegistryFace.registerContentFolderActionListener(spcp7.imagegallery.abstractionlayer.face.ContentFolderActionListenerFace)public void removeContentFolderActionListener(ContentFolderActionListenerFace listener)
ContentProviderRegistryFace
removeContentFolderActionListener in interface ContentProviderRegistryFacelistener - A class implementing
ContentFolderActionListenerFaceContentProviderRegistryFace.removeContentFolderActionListener(spcp7.imagegallery.abstractionlayer.face.ContentFolderActionListenerFace)public void setContentProviders(java.util.List<ContentProviderFace> contentProviders)
contentProviders -
public void setApplicationContext(org.springframework.context.ApplicationContext arg0)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)public void setGeneralValidationUtil(GeneralValidation generalValidationUtil)
generalValidationUtil - the generalValidationUtil to setpublic void setCprValidation(CprValidation cprValidation)
cprValidation - the cprValidation to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||