public class CmsUgcConfiguration extends java.lang.Object
Constructor and Description |
---|
CmsUgcConfiguration(CmsUUID id,
com.google.common.base.Optional<CmsUser> userForGuests,
CmsGroup projectGroup,
java.lang.String resourceType,
CmsResource contentParentFolder,
java.lang.String namePattern,
java.util.Locale locale,
com.google.common.base.Optional<CmsResource> uploadParent,
com.google.common.base.Optional<java.lang.Long> maxUploadSize,
com.google.common.base.Optional<java.lang.Integer> maxContents,
com.google.common.base.Optional<java.lang.Long> queueTimeout,
com.google.common.base.Optional<java.lang.Integer> maxQueueLength,
boolean autoPublish,
com.google.common.base.Optional<java.util.List<java.lang.String>> validExtensions)
Creates a new form configuration.
|
Modifier and Type | Method and Description |
---|---|
CmsResource |
getContentParentFolder()
Returns the folder for XML contents.
|
CmsUUID |
getId()
Gets the id.
|
java.util.Locale |
getLocale()
Returns the locale.
|
com.google.common.base.Optional<java.lang.Integer> |
getMaxContentNumber()
Returns the maximum number of XML contents.
|
com.google.common.base.Optional<java.lang.Integer> |
getMaxQueueLength()
Returns the maximum queue length.
|
com.google.common.base.Optional<java.lang.Long> |
getMaxUploadSize()
Returns the maximum upload size.
|
java.lang.String |
getNamePattern()
Returns the name pattern for XML contents.
|
java.lang.String |
getPath()
Gets the path of the configuration.
|
CmsGroup |
getProjectGroup()
Returns the group which should be used as the manager groups for projects based on this configuration.
|
com.google.common.base.Optional<java.lang.Long> |
getQueueInterval()
Returns the wait time for acquiring sessions for the same configuration.
|
java.lang.String |
getResourceType()
Returns the resource type for XML contents.
|
com.google.common.base.Optional<CmsResource> |
getUploadParentFolder()
Returns the folder for uploads.
|
com.google.common.base.Optional<CmsUser> |
getUserForGuests()
Returns the user which should be used for VFS operations when guests submit the XML content form.
|
com.google.common.base.Optional<java.util.List<java.lang.String>> |
getValidExtensions()
Returns the list of valid extensions for uploads.
|
boolean |
isAutoPublish()
Returns true if XML contents should automatically be published.
|
boolean |
needsQueue()
Checks if a queue is needed for creating sessions for this configuration.
|
void |
setPath(java.lang.String path)
Sets the path.
|
java.lang.String |
toString() |
public CmsUgcConfiguration(CmsUUID id, com.google.common.base.Optional<CmsUser> userForGuests, CmsGroup projectGroup, java.lang.String resourceType, CmsResource contentParentFolder, java.lang.String namePattern, java.util.Locale locale, com.google.common.base.Optional<CmsResource> uploadParent, com.google.common.base.Optional<java.lang.Long> maxUploadSize, com.google.common.base.Optional<java.lang.Integer> maxContents, com.google.common.base.Optional<java.lang.Long> queueTimeout, com.google.common.base.Optional<java.lang.Integer> maxQueueLength, boolean autoPublish, com.google.common.base.Optional<java.util.List<java.lang.String>> validExtensions)
id
- the id for the form configurationuserForGuests
- the user to use for VFS operations caused by guests who submit the XML content formprojectGroup
- the group to be used as the manager group for projects based on this configurationresourceType
- the resource type for new XML contentscontentParentFolder
- the parent folder for XML contentsnamePattern
- the name pattern for XML contentslocale
- the locale to useuploadParent
- the parent folder for uploadsmaxUploadSize
- the maximum upload file sizemaxContents
- the maximum number of XML contentsqueueTimeout
- the wait time for the queuemaxQueueLength
- the maximum queue lengthautoPublish
- enables/disables automatic publishingvalidExtensions
- the list of valid extensionspublic CmsResource getContentParentFolder()
public CmsUUID getId()
The id is a UUID that should uniquely identify this configuration.
public java.util.Locale getLocale()
public com.google.common.base.Optional<java.lang.Integer> getMaxContentNumber()
public com.google.common.base.Optional<java.lang.Integer> getMaxQueueLength()
public com.google.common.base.Optional<java.lang.Long> getMaxUploadSize()
public java.lang.String getNamePattern()
public java.lang.String getPath()
public CmsGroup getProjectGroup()
public com.google.common.base.Optional<java.lang.Long> getQueueInterval()
public java.lang.String getResourceType()
public com.google.common.base.Optional<CmsResource> getUploadParentFolder()
public com.google.common.base.Optional<CmsUser> getUserForGuests()
public com.google.common.base.Optional<java.util.List<java.lang.String>> getValidExtensions()
public boolean isAutoPublish()
public boolean needsQueue()
public void setPath(java.lang.String path)
path
- the path of the configuration.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()