spcp7.imagegallery.impl.alfresco
Class AlfrescoContentProviderImpl

java.lang.Object
  extended by spcp7.imagegallery.impl.alfresco.AlfrescoContentProviderImpl
All Implemented Interfaces:
ContentProviderFace

public class AlfrescoContentProviderImpl
extends java.lang.Object
implements ContentProviderFace

Author:
Phillip Merensky

Field Summary
static java.lang.String contentProviderTypeID
          This should not be changed!
 
Constructor Summary
AlfrescoContentProviderImpl()
          Within the constructor the default properties are initialized.
 
Method Summary
 ContentManipulationFace getContentManipulatorInstance()
          This method returns the singleton content manipulation instance of the content provider.
 java.lang.String getContentProviderTypeID()
          This id must be unique under all content provider.
 ContentRetrievalFace getContentRetrievalInstance()
          This method returns the singleton content retrieval instance of the content provider.
 ContentSubmitterFace getContentSubmitterInstance()
          This method returns the singleton content submitter instance of the content provider.
 java.util.Map<java.lang.String,PropertyModelFace> getDefaultProperties()
          This method returns the default properties of this content provider.
 java.lang.String getName()
          Only for convenience.
 boolean manipulationSupported()
           
 void setContentRetrieval(ContentRetrievalFace contentRetrieval)
          Injected by spring
 boolean submissionSupported()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentProviderTypeID

public static final java.lang.String contentProviderTypeID
This should not be changed!

See Also:
Constant Field Values
Constructor Detail

AlfrescoContentProviderImpl

public AlfrescoContentProviderImpl()
Within the constructor the default properties are initialized.

Method Detail

getContentManipulatorInstance

public ContentManipulationFace getContentManipulatorInstance()
                                                      throws FeatureNotProvidedException
Description copied from interface: ContentProviderFace
This method returns the singleton content manipulation instance of the content provider. Content manipulation may be implemented for a content provider. If it is not an exception will be thrown.

Specified by:
getContentManipulatorInstance in interface ContentProviderFace
Returns:
the singleton content manipulation instance of this content provider.
Throws:
FeatureNotProvidedException - If this feature is not supported for this content provider.
See Also:
ContentProviderFace.getContentManipulatorInstance()

getContentRetrievalInstance

public ContentRetrievalFace getContentRetrievalInstance()
Description copied from interface: ContentProviderFace
This method returns the singleton content retrieval instance of the content provider. Content Retrieval must be implemented for every content provider.

Specified by:
getContentRetrievalInstance in interface ContentProviderFace
Returns:
the singleton content retrieval instance of this content provider.
See Also:
ContentProviderFace.getContentRetrievalInstance()

getContentSubmitterInstance

public ContentSubmitterFace getContentSubmitterInstance()
                                                 throws FeatureNotProvidedException
Description copied from interface: ContentProviderFace
This method returns the singleton content submitter instance of the content provider. Content submission may be implemented for a content provider. If it is not an exception will be thrown.

Specified by:
getContentSubmitterInstance in interface ContentProviderFace
Returns:
the singleton content submitter instance of this content provider.
Throws:
FeatureNotProvidedException - If this feature is not supported for this content provider.
See Also:
ContentProviderFace.getContentSubmitterInstance()

getName

public java.lang.String getName()
Description copied from interface: ContentProviderFace
Only for convenience.
This should also return the contentProviderTypeID (ContentProviderFace.getContentProviderTypeID()).

Specified by:
getName in interface ContentProviderFace
Returns:
String The contentProviderTypeID
See Also:
ContentProviderFace.getName()

getContentProviderTypeID

public java.lang.String getContentProviderTypeID()
Description copied from interface: ContentProviderFace
This id must be unique under all content provider. That is why you should define a name which will extremely unlikely collide with another name and which will also be self-explanatory for a user (eg spcp7.imagegallery.contentprovider.alfresco). It would be best if you use the "spcp7.imagegallery.contentprovider" prefix also.

IMPORTANT! This ID should if once set and used never be changed again!

Specified by:
getContentProviderTypeID in interface ContentProviderFace
Returns:
String the unique id of this content provider.
See Also:
ContentProviderFace.getContentProviderTypeID()

manipulationSupported

public boolean manipulationSupported()
Specified by:
manipulationSupported in interface ContentProviderFace
Returns:
boolean true if manipulation is supported, false otherwise.
See Also:
ContentProviderFace.manipulationSupported()

submissionSupported

public boolean submissionSupported()
Specified by:
submissionSupported in interface ContentProviderFace
Returns:
boolean true if submission is supported, false otherwise
See Also:
ContentProviderFace.submissionSupported()

getDefaultProperties

public java.util.Map<java.lang.String,PropertyModelFace> getDefaultProperties()
Description copied from interface: ContentProviderFace
This method returns the default properties of this content provider. When a new content folder will be saved these defaults and the default of the content provider registry will be merged whereas these properties overwrite same properties from the content provider registry.

Specified by:
getDefaultProperties in interface ContentProviderFace
Returns:
a map with default properties. The key of this map (String) should be PropertyModelFace.getSchluessel().
See Also:
ContentProviderFace.getDefaultProperties()

setContentRetrieval

public void setContentRetrieval(ContentRetrievalFace contentRetrieval)
Injected by spring

Parameters:
contentRetrieval -


Copyright © 2008. All Rights Reserved.