spcp7.imagegallery.impl.alfresco.utils
Enum AlfrescoDefaultProperties

java.lang.Object
  extended by java.lang.Enum<AlfrescoDefaultProperties>
      extended by spcp7.imagegallery.impl.alfresco.utils.AlfrescoDefaultProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AlfrescoDefaultProperties>

public enum AlfrescoDefaultProperties
extends java.lang.Enum<AlfrescoDefaultProperties>

These are the default properties of content provider alfresco.

We could also use a full Enum class with special constructors to set the value of each default property. This is not done, because we need the default properties as map and thus the enum"eration" would not give us any benefits.

Author:
Phillip Merensky
See Also:
AlfrescoContentProviderImpl.AlfrescoContentProviderImpl()

Enum Constant Summary
ALFRESCO_BASE_URL
          This is the url from which the image will be loaded.
ALFRESCO_FULL_APP_NAMESPACE_REPLACEMENT
          If the default value is not familiar to you, leave it as it is.
ALFRESCO_FULL_CM_NAMESPACE_REPLACEMENT
          If the default value is not familiar to you, leave it as it is.
ALFRESCO_MAX_RESULT_ROWS
          If you have very big image folders you can restrict the data which will be retrieved to this amount of rows.
ALFRESCO_NAMESPACE_CONTENT_MODEL
          If you do not know, what this means, leave the default.
ALFRESCO_PASSWORD
          The password corresponding to the username.
ALFRESCO_SHORTEN_APP_NAMESPACE_REGEX
          For internal use only.
ALFRESCO_SHORTEN_CM_NAMESPACE_REGEX
          For internal use only.
ALFRESCO_SPACES_STORE
          The spaces store from where the content should be retrieved.
ALFRESCO_USERNAME
          The user name with which the image gallery should connect to Alfresco.
ALFRESCO_WORKSPACE_STORE
          The workspace store from where the content should be retrieved.
 
Method Summary
static AlfrescoDefaultProperties valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AlfrescoDefaultProperties[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALFRESCO_USERNAME

public static final AlfrescoDefaultProperties ALFRESCO_USERNAME
The user name with which the image gallery should connect to Alfresco. The image gallery only needs read permissions for the folder and the content which should be retrieved.


ALFRESCO_PASSWORD

public static final AlfrescoDefaultProperties ALFRESCO_PASSWORD
The password corresponding to the username. Because the content which will be displayed is normally in the public domain anyway this password is not and will not be encrypted.


ALFRESCO_WORKSPACE_STORE

public static final AlfrescoDefaultProperties ALFRESCO_WORKSPACE_STORE
The workspace store from where the content should be retrieved. If you do not know what this means, you should leave the default value.


ALFRESCO_SPACES_STORE

public static final AlfrescoDefaultProperties ALFRESCO_SPACES_STORE
The spaces store from where the content should be retrieved. If you do not know what this means, you should leave the default value.


ALFRESCO_BASE_URL

public static final AlfrescoDefaultProperties ALFRESCO_BASE_URL
This is the url from which the image will be loaded. If you display an image from within the Alfresco GUI this base sttring is prepended to the image id. The dafult value should be ok for almost all cases.


ALFRESCO_NAMESPACE_CONTENT_MODEL

public static final AlfrescoDefaultProperties ALFRESCO_NAMESPACE_CONTENT_MODEL
If you do not know, what this means, leave the default.


ALFRESCO_MAX_RESULT_ROWS

public static final AlfrescoDefaultProperties ALFRESCO_MAX_RESULT_ROWS
If you have very big image folders you can restrict the data which will be retrieved to this amount of rows. This is normally only a performance measure because within the view the images will be paginated anyway, so leave the default.


ALFRESCO_SHORTEN_APP_NAMESPACE_REGEX

public static final AlfrescoDefaultProperties ALFRESCO_SHORTEN_APP_NAMESPACE_REGEX
For internal use only.


ALFRESCO_SHORTEN_CM_NAMESPACE_REGEX

public static final AlfrescoDefaultProperties ALFRESCO_SHORTEN_CM_NAMESPACE_REGEX
For internal use only.


ALFRESCO_FULL_CM_NAMESPACE_REPLACEMENT

public static final AlfrescoDefaultProperties ALFRESCO_FULL_CM_NAMESPACE_REPLACEMENT
If the default value is not familiar to you, leave it as it is.


ALFRESCO_FULL_APP_NAMESPACE_REPLACEMENT

public static final AlfrescoDefaultProperties ALFRESCO_FULL_APP_NAMESPACE_REPLACEMENT
If the default value is not familiar to you, leave it as it is.

Method Detail

values

public static final AlfrescoDefaultProperties[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(AlfrescoDefaultProperties c : AlfrescoDefaultProperties.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static AlfrescoDefaultProperties valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2008. All Rights Reserved.