|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.file.CmsPropertyDefinition
public class CmsPropertyDefinition
Defines a property name, so that
instances can be created with that name.CmsProperty
Nested Class Summary | |
---|---|
static class |
CmsPropertyDefinition.CmsPropertyType
Enumeration class for property types. |
Field Summary | |
---|---|
static java.lang.String |
NAME_CONSTRAINTS
The name constraints when generating new properties. |
static java.lang.String |
PROPERTY_ACTIV
Property for the active method in the administration view. |
static java.lang.String |
PROPERTY_AVAILABLE_LOCALES
Property for the allowed set of locales. |
static java.lang.String |
PROPERTY_BODY_CLASS
Property to control the Java class for body. |
static java.lang.String |
PROPERTY_CACHE
The name of the VFS property that controls the caching. |
static java.lang.String |
PROPERTY_CONTENT_CONVERSION
Property for the content conversion. |
static java.lang.String |
PROPERTY_CONTENT_ENCODING
Property for the content encoding. |
static java.lang.String |
PROPERTY_DEFAULT_FILE
Property for the default file in folders. |
static java.lang.String |
PROPERTY_DELETE_EXPIRED
Property for the days a resource has to be expired to be deleted by the . |
static java.lang.String |
PROPERTY_DESCRIPTION
Property for the description. |
static java.lang.String |
PROPERTY_ENABLE_NOTIFICATION
Property for the resource title. |
static java.lang.String |
PROPERTY_EXPORT
Property for the static export. |
static java.lang.String |
PROPERTY_EXPORTNAME
Property for the resource export name, during export this name is used instead of the resource name. |
static java.lang.String |
PROPERTY_EXPORTSUFFIX
Property for JSP additional suffix during static export, default is "html". |
static java.lang.String |
PROPERTY_FOLDERS_AVAILABLE
Property to control the folders where template or default bodies should be available. |
static java.lang.String |
PROPERTY_IMAGE_SIZE
Property constant for "image.size" . |
static java.lang.String |
PROPERTY_KEYWORDS
Property for the keywords. |
static java.lang.String |
PROPERTY_LOCALE
Property for the current locale. |
static java.lang.String |
PROPERTY_LOGIN_FORM
Property for the login form. |
static java.lang.String |
PROPERTY_NAVIMAGE
Property constant for "NavImage" . |
static java.lang.String |
PROPERTY_NAVINFO
Property constant for "NavInfo" . |
static java.lang.String |
PROPERTY_NAVPOS
Property for the navigation position. |
static java.lang.String |
PROPERTY_NAVTEXT
Property for the navigation text. |
static java.lang.String |
PROPERTY_NOTIFICATION_INTERVAL
Property for the resource title. |
static java.lang.String |
PROPERTY_RELATIVEROOT
Property for the relative root link substitution. |
static java.lang.String |
PROPERTY_RESTYPES_AVAILABLE
Property name that defines the available resource types for the "new" dialog. |
static java.lang.String |
PROPERTY_SEARCH_CATEGORY
Property to sort search results in categories. |
static java.lang.String |
PROPERTY_SEARCH_EXCLUDE
Property to exclude individual resources from search index generation. |
static java.lang.String |
PROPERTY_SEARCH_PRIORITY
Property to boost certain search results. |
static java.lang.String |
PROPERTY_SECURE
Property for the secure transmission of resources. |
static java.lang.String |
PROPERTY_STYLESHEET
Property for the stylesheet of files. |
static java.lang.String |
PROPERTY_TEMPLATE
Property to control the template. |
static java.lang.String |
PROPERTY_TEMPLATE_ELEMENTS
Property to control the template elements. |
static java.lang.String |
PROPERTY_TITLE
Property for the resource title. |
static java.lang.String |
PROPERTY_VISIBLE
Property for the visible method in the administration view. |
static int |
PROPERYDEFINITION_RESOURCE
The propertydefinitiontype for resources. |
static CmsPropertyDefinition.CmsPropertyType |
TYPE_LINK
Property value is treated as a link or list of links. |
static CmsPropertyDefinition.CmsPropertyType |
TYPE_NORMAL
Property value is not a link. |
Constructor Summary | |
---|---|
CmsPropertyDefinition(CmsUUID id,
java.lang.String name)
Creates a new property definition object with the type . |
|
CmsPropertyDefinition(CmsUUID id,
java.lang.String name,
CmsPropertyDefinition.CmsPropertyType propertyType)
Creates a new property definition object. |
Method Summary | |
---|---|
static void |
checkPropertyName(java.lang.String name)
Checks if the provided property name is a valid property name, that is contains only valid characters. |
java.lang.Object |
clone()
Returns a clone of this Objects instance. |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object obj)
|
CmsUUID |
getId()
Returns the id of this property definition. |
java.lang.String |
getName()
Returns the name of this property definition. |
static CmsPropertyDefinition |
getNullPropertyDefinition()
Returns the null property definition. |
CmsPropertyDefinition.CmsPropertyType |
getType()
Returns the the type of this property definition. |
int |
hashCode()
|
void |
setType(CmsPropertyDefinition.CmsPropertyType type)
Sets the type for this property definition. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME_CONSTRAINTS
public static final java.lang.String PROPERTY_ACTIV
public static final java.lang.String PROPERTY_AVAILABLE_LOCALES
public static final java.lang.String PROPERTY_BODY_CLASS
public static final java.lang.String PROPERTY_CACHE
public static final java.lang.String PROPERTY_CONTENT_CONVERSION
public static final java.lang.String PROPERTY_DELETE_EXPIRED
CmsDeleteExpiredResourcesJob
.
public static final java.lang.String PROPERTY_CONTENT_ENCODING
public static final java.lang.String PROPERTY_DEFAULT_FILE
public static final java.lang.String PROPERTY_DESCRIPTION
public static final java.lang.String PROPERTY_ENABLE_NOTIFICATION
public static final java.lang.String PROPERTY_EXPORT
public static final java.lang.String PROPERTY_EXPORTNAME
public static final java.lang.String PROPERTY_EXPORTSUFFIX
public static final java.lang.String PROPERTY_FOLDERS_AVAILABLE
public static final java.lang.String PROPERTY_IMAGE_SIZE
"image.size"
.
public static final java.lang.String PROPERTY_KEYWORDS
public static final java.lang.String PROPERTY_LOCALE
public static final java.lang.String PROPERTY_LOGIN_FORM
public static final java.lang.String PROPERTY_NAVIMAGE
"NavImage"
.
public static final java.lang.String PROPERTY_NAVINFO
"NavInfo"
.
public static final java.lang.String PROPERTY_NAVPOS
public static final java.lang.String PROPERTY_NAVTEXT
public static final java.lang.String PROPERTY_NOTIFICATION_INTERVAL
public static final java.lang.String PROPERTY_RELATIVEROOT
public static final java.lang.String PROPERTY_RESTYPES_AVAILABLE
public static final java.lang.String PROPERTY_SEARCH_CATEGORY
public static final java.lang.String PROPERTY_SEARCH_EXCLUDE
public static final java.lang.String PROPERTY_SEARCH_PRIORITY
public static final java.lang.String PROPERTY_SECURE
public static final java.lang.String PROPERTY_STYLESHEET
public static final java.lang.String PROPERTY_TEMPLATE
public static final java.lang.String PROPERTY_TEMPLATE_ELEMENTS
public static final java.lang.String PROPERTY_TITLE
public static final java.lang.String PROPERTY_VISIBLE
public static final int PROPERYDEFINITION_RESOURCE
public static final CmsPropertyDefinition.CmsPropertyType TYPE_LINK
public static final CmsPropertyDefinition.CmsPropertyType TYPE_NORMAL
Constructor Detail |
---|
public CmsPropertyDefinition(CmsUUID id, java.lang.String name)
TYPE_NORMAL
.
id
- the id of the property definitionname
- the name of the property definitionpublic CmsPropertyDefinition(CmsUUID id, java.lang.String name, CmsPropertyDefinition.CmsPropertyType propertyType)
id
- the id of the property definitionname
- the name of the property definitionpropertyType
- the type of the propertyMethod Detail |
---|
public static void checkPropertyName(java.lang.String name) throws CmsIllegalArgumentException
A property name can only be composed of digits,
standard ASCII letters and the symbols defined in NAME_CONSTRAINTS
.
name
- the property name to check
CmsIllegalArgumentException
- if the given property name is not validpublic static CmsPropertyDefinition getNullPropertyDefinition()
public java.lang.Object clone()
clone
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public CmsUUID getId()
public java.lang.String getName()
public CmsPropertyDefinition.CmsPropertyType getType()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void setType(CmsPropertyDefinition.CmsPropertyType type)
type
- the type to setpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |