public class FilePropertyDescriptor extends RepositoryPropertyDescriptor
You can use this property to expose content through the GSA which is stored in the system as a path name. If you define this property in an item-descriptor with the content="true" attribute set, the ItemPath of the content item is used (optionally in conjunction with the pathPrefix value) to determine the file system path of the file for this property.
If this property is not part of a content repository item, you must specify a pathName property feature descriptor attribute. That attribute specifies the name of a property to use to retrieve the path of the file. The path is appended onto the pathPrefix if one is specified.
isIdProperty
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CHECKSUM_PROPERTY |
static java.lang.String |
CLASS_VERSION
Class version string
|
protected java.lang.String |
mPathNameProperty
Values of these attributes for this particular property
|
protected java.lang.String |
mPathPrefix |
protected static java.lang.String |
PATH_NAME_PROPERTY |
protected static java.lang.String |
PATH_PREFIX
Attribute names
|
protected static java.lang.String |
TYPE_NAME |
EMPTY_LIST, EMPTY_MAP, EMPTY_SET, FOREIGN_REPOSITORY_NAME, FOREIGN_REPOSITORY_PATH, IS_BACKING_MAP_PROPERTY, mCollectionOrMap, NULL_VALUE
PORTABLE_VALUE_KEY
BUNDLE_ATTRIBUTE_NAME, LOCALE_ATTRIBUTE_NAME
Constructor and Description |
---|
FilePropertyDescriptor()
Constructs a new FilePropertyDescriptor
|
FilePropertyDescriptor(java.lang.String pPropertyName)
Constructs a new FilePropertyDescriptor for a particular property.
|
FilePropertyDescriptor(java.lang.String pPropertyName,
java.lang.Class pPropertyType,
java.lang.String pShortDescription)
Constructs a new RepositoryPropertyDescriptor with the given
property name, property type, and short description.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChecksumPropertyName() |
java.lang.Class |
getPropertyType()
The Java type info for the property.
|
java.lang.Object |
getPropertyValue(RepositoryItemImpl pItem,
java.lang.Object pValue)
This method is called to retrieve a read-only value for this property.
|
java.lang.String |
getTypeName()
Returns the name this type uses in the XML file.
|
boolean |
isQueryable()
Returns property Queryable
|
boolean |
isWritable()
Returns property Writable.
|
void |
setChecksumPropertyName(java.lang.String pChecksumPropertyName) |
void |
setComponentItemDescriptor(RepositoryItemDescriptor pDesc)
Sets the property ComponentItemDescriptor.
|
void |
setComponentPropertyType(java.lang.Class pClass)
Sets the property ComponentPropertyType.
|
void |
setPropertyItemDescriptor(RepositoryItemDescriptor pDesc)
Sets the property PropertyItemDescriptor.
|
void |
setPropertyType(java.lang.Class pClass)
Perform type checking.
|
void |
setValue(java.lang.String pAttributeName,
java.lang.Object pValue)
Catch the attribute values that we care about and store them in
member variables.
|
clone, createPropertyDescriptorFromType, getAttributeNames, getCascadeDelete, getCascadeInsert, getCascadeUpdate, getComponentItemDescriptor, getComponentPropertyBeanInfo, getDefaultValue, getDefaultValueString, getEnumeratedLocalizedValuesMapping, getEnumeratedValues, getItemDescriptor, getLocalizedResourceBundle, getPropertyBeanInfo, getPropertyItemDescriptor, getResourceBundle, getResourceBundleName, getSecureLogging, getSecureLoggingFormatter, getSecureLoggingString, getUnmodifiableDefaultValue, getValue, isAssignableFrom, isCacheable, isCollectionOrMap, isDerived, isDynamicallyCreated, isIdProperty, isIgnoreNullValue, isLocalizable, isLoggingDebug, isMultiValued, isPersistent, isSecureLogging, isValidValue, isVersionable, isVersionableSet, registerPropertyDescriptorClass, setCacheable, setCascadeDelete, setCascadeInsert, setCascadeUpdate, setDefaultValue, setDefaultValueString, setDerived, setDynamicallyCreated, setIdProperty, setIgnoreNullValue, setItemDescriptor, setLoggingDebug, setPersistent, setPropertyValue, setQueryable, setResourceBundleName, setSecureLogging, setSecureLoggingFormatter, setVersionable, toString
createLocalePropertyEditor, createLocalePropertyEditor, createPropertyEditor, getComponentPropertyType, getLocale, getPropertyEditorClass, getUIPropertyEditor, isReadable, isRequired, setPropertyEditorClass, setReadable, setRequired, setWritable
copyFeatureDescriptor, getCurrentLocale, getDisplayName, getDisplayName, getDisplayNameResource, getDisplaySortString, getLocalizedDisplayName, getLocalizedResourceBundle, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResource
public static java.lang.String CLASS_VERSION
protected static final java.lang.String PATH_PREFIX
protected static final java.lang.String PATH_NAME_PROPERTY
protected static final java.lang.String TYPE_NAME
protected static final java.lang.String CHECKSUM_PROPERTY
protected java.lang.String mPathNameProperty
protected java.lang.String mPathPrefix
public FilePropertyDescriptor()
public FilePropertyDescriptor(java.lang.String pPropertyName)
public FilePropertyDescriptor(java.lang.String pPropertyName, java.lang.Class pPropertyType, java.lang.String pShortDescription)
public boolean isQueryable()
isQueryable
in class RepositoryPropertyDescriptor
public boolean isWritable()
isWritable
in class DynamicPropertyDescriptor
public java.lang.String getChecksumPropertyName()
public void setChecksumPropertyName(java.lang.String pChecksumPropertyName)
public java.lang.Object getPropertyValue(RepositoryItemImpl pItem, java.lang.Object pValue)
getPropertyValue
in class RepositoryPropertyDescriptor
public void setValue(java.lang.String pAttributeName, java.lang.Object pValue)
setValue
in class RepositoryPropertyDescriptor
public java.lang.String getTypeName()
getTypeName
in class RepositoryPropertyDescriptor
public java.lang.Class getPropertyType()
DynamicPropertyDescriptor
getPropertyType
in class DynamicPropertyDescriptor
public void setPropertyType(java.lang.Class pClass)
setPropertyType
in class RepositoryPropertyDescriptor
public void setComponentPropertyType(java.lang.Class pClass)
DynamicPropertyDescriptor
setComponentPropertyType
in class DynamicPropertyDescriptor
pClass
- new value to setpublic void setPropertyItemDescriptor(RepositoryItemDescriptor pDesc)
RepositoryPropertyDescriptor
setPropertyItemDescriptor
in class RepositoryPropertyDescriptor
pDesc
- new value to setpublic void setComponentItemDescriptor(RepositoryItemDescriptor pDesc)
RepositoryPropertyDescriptor
setComponentItemDescriptor
in class RepositoryPropertyDescriptor
pDesc
- new value to set