|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectspcp7.imagegallery.impl.alfresco.AlfrescoContentRetrievalImpl
public class AlfrescoContentRetrievalImpl
Implementation of an Alfresco content provider.
| Constructor Summary | |
|---|---|
AlfrescoContentRetrievalImpl()
Empty standard constructor |
|
| Method Summary | |
|---|---|
void |
close()
This method must be called after all content actions are done. |
java.lang.String |
createFolder(java.lang.String name,
java.util.Map<java.lang.String,PropertyModelFace> properties)
This method and #removeFolder(String, Map) are currently only for
testing purposes. |
ContentFace |
getParent(java.lang.String proprietaryId,
java.util.Map<java.lang.String,PropertyModelFace> properties)
Additionally to the properties mentioned in the interface AlfrescoDefaultProperties.ALFRESCO_MAX_RESULT_ROWS,
AlfrescoDefaultProperties.ALFRESCO_SPACES_STORE and
AlfrescoDefaultProperties.ALFRESCO_WORKSPACE_STORE properties are
needed. |
java.util.List<ContentFace> |
getVolumes(java.util.Map<java.lang.String,PropertyModelFace> properties,
boolean isFolder)
Additionally to the properties mentioned in the interface AlfrescoDefaultProperties.ALFRESCO_MAX_RESULT_ROWS,
AlfrescoDefaultProperties.ALFRESCO_SPACES_STORE and
AlfrescoDefaultProperties.ALFRESCO_WORKSPACE_STORE properties are
needed. |
java.util.List<ContentFace> |
getVolumesFromTo(int lowerLimit,
int upperLimit,
java.util.Map<java.lang.String,PropertyModelFace> properties,
boolean isFolder)
Additionally to the properties mentioned in the interface AlfrescoDefaultProperties.ALFRESCO_MAX_RESULT_ROWS,
AlfrescoDefaultProperties.ALFRESCO_SPACES_STORE and
AlfrescoDefaultProperties.ALFRESCO_WORKSPACE_STORE properties are
needed. |
void |
open(java.util.Map<java.lang.String,PropertyModelFace> properties)
Additionally to the properties mentioned in the interface AlfrescoDefaultProperties.ALFRESCO_USERNAME and
AlfrescoDefaultProperties.ALFRESCO_PASSWORD properties are
needed. |
void |
removeFolder(java.util.Map<java.lang.String,PropertyModelFace> properties)
This method and createFolder(String, Map) are currently only for
testing purposes. |
void |
setAlfrescoUtils(AlfrescoUtils alfrescoUtils)
Injected by Spring. |
void |
setAlfrescoValidation(AlfrescoValidation alfrescoValidation)
Injected by Spring. |
void |
setApplicationContext(org.springframework.context.ApplicationContext arg0)
Injected by Spring. |
void |
setContentComparator(java.util.Comparator<ContentFace> contentComparator)
Injected by Spring. |
void |
setGeneralValidation(GeneralValidation generalValidation)
Injected by Spring. |
void |
setImageFilter(ImageFilterFace imageFilterFace)
Injected by Spring. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlfrescoContentRetrievalImpl()
| Method Detail |
|---|
public void close()
ContentConnectionFace
close in interface ContentConnectionFace
public java.lang.String createFolder(java.lang.String name,
java.util.Map<java.lang.String,PropertyModelFace> properties)
throws ContentCouldNotBeAccessedException
#removeFolder(String, Map) are currently only for
testing purposes. That is for inserting and deleting test content. Later
they could be used within a class implementing the
ContentSubmitterFace for example.
name - The name of the folderproperties - The following properties are required:
AlfrescoDefaultProperties.ALFRESCO_SPACES_STORE,
AlfrescoDefaultProperties.ALFRESCO_WORKSPACE_STORE,
DefaultProperties.SPCP7_CURRENT_PATH
ContentCouldNotBeAccessedException - if the folder could not be deleted or the repository
could not be reached.
public ContentFace getParent(java.lang.String proprietaryId,
java.util.Map<java.lang.String,PropertyModelFace> properties)
throws ContentCouldNotBeAccessedException,
NoContentFoundException
AlfrescoDefaultProperties.ALFRESCO_MAX_RESULT_ROWS,
AlfrescoDefaultProperties.ALFRESCO_SPACES_STORE and
AlfrescoDefaultProperties.ALFRESCO_WORKSPACE_STORE properties are
needed.
getParent in interface ContentRetrievalFaceContentCouldNotBeAccessedException
NoContentFoundExceptionspcp7.imagegallery.contentprovider.face.ContentRetrievalFace#getParent(spcp7.imagegallery.abstractionlayer.face.ContentFace,
java.util.Map)
public java.util.List<ContentFace> getVolumes(java.util.Map<java.lang.String,PropertyModelFace> properties,
boolean isFolder)
throws PropertyValidationException,
ContentCouldNotBeAccessedException,
NoContentFoundException
AlfrescoDefaultProperties.ALFRESCO_MAX_RESULT_ROWS,
AlfrescoDefaultProperties.ALFRESCO_SPACES_STORE and
AlfrescoDefaultProperties.ALFRESCO_WORKSPACE_STORE properties are
needed.
getVolumes in interface ContentRetrievalFaceproperties - the properties of the specified path.isFolder - True if the path specifies a folder, false otherwise.
ContentFaces or a List with only one element
if param isFolder was false.
PropertyValidationException - If a property is missing or has the wrong value.
ContentCouldNotBeAccessedException - If the content could not be accessed. This may hav
several reasons. Look at the exception message to get the
details.
NoContentFoundException - If the query was correct but no content was found.spcp.imagegallery.abstractionlayer.face.external.ContentRetrievalFace#getVolumes(java.lang.String)
public java.util.List<ContentFace> getVolumesFromTo(int lowerLimit,
int upperLimit,
java.util.Map<java.lang.String,PropertyModelFace> properties,
boolean isFolder)
throws RangeNotValidException,
PropertyValidationException,
ContentCouldNotBeAccessedException,
NoContentFoundException
AlfrescoDefaultProperties.ALFRESCO_MAX_RESULT_ROWS,
AlfrescoDefaultProperties.ALFRESCO_SPACES_STORE and
AlfrescoDefaultProperties.ALFRESCO_WORKSPACE_STORE properties are
needed.
getVolumesFromTo in interface ContentRetrievalFacelowerLimit - The lower limit of the result setupperLimit - The upper limit of the result setproperties - the properties of the specified path.isFolder - True if the path specifies a folder, false otherwise.
ContentFaces
RangeNotValidException - if the specified range is not valid.
PropertyValidationException - If a property is missing or has the wrong value.
ContentCouldNotBeAccessedException - If the content could not be accessed. This may hav
several reasons. Look at the exception message to get the
details.
NoContentFoundException - If the query was correct but no content was found.ContentRetrievalFace.getVolumesFromTo(int,
int, java.util.Map, boolean)
public void open(java.util.Map<java.lang.String,PropertyModelFace> properties)
throws PropertyValidationException,
ContentProviderAuthenticationException
AlfrescoDefaultProperties.ALFRESCO_USERNAME and
AlfrescoDefaultProperties.ALFRESCO_PASSWORD properties are
needed.
open in interface ContentConnectionFaceproperties - The map of properties of the content provider which
specifies all needed options.
PropertyValidationException - if the properties do not contain needed fields or these
fields are invalid.
ContentProviderAuthenticationException - If the user could not be authenticated/logged in with the
provided credentials.ContentConnectionFace.open(java.util.Map)
public void removeFolder(java.util.Map<java.lang.String,PropertyModelFace> properties)
throws ContentCouldNotBeAccessedException
createFolder(String, Map) are currently only for
testing purposes. That is for inserting and deleting test content. Later
they could be used within a class implementing the
ContentSubmitterFace. The key
DefaultProperties.SPCP7_CURRENT_PATH defines the foldr which
should be deleted.
properties - The following properties are required:
AlfrescoDefaultProperties.ALFRESCO_SPACES_STORE,
AlfrescoDefaultProperties.ALFRESCO_WORKSPACE_STORE,
DefaultProperties.SPCP7_CURRENT_PATH
ContentCouldNotBeAccessedException - if the folder could not be deleted or the repository
could not be reached.
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 setContentComparator(java.util.Comparator<ContentFace> contentComparator)
contentComparator - the contentComparator to setpublic void setImageFilter(ImageFilterFace imageFilterFace)
imageFilterFace - the imageFilterFace to setpublic void setAlfrescoValidation(AlfrescoValidation alfrescoValidation)
alfrescoValidation - the alfrescoValidation to setpublic void setGeneralValidation(GeneralValidation generalValidation)
generalValidation - the generalValidation to setpublic void setAlfrescoUtils(AlfrescoUtils alfrescoUtils)
alfrescoUtils - the alfrescoUtils to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||