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, mCollectionOrMapPORTABLE_VALUE_KEYBUNDLE_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, getCascadeDelete, getCascadeInsert, getCascadeUpdate, getComponentItemDescriptor, getComponentPropertyBeanInfo, getDefaultValue, getDefaultValueString, getEnumeratedValues, getItemDescriptor, getLocalizedResourceBundle, getPropertyBeanInfo, getPropertyItemDescriptor, getResourceBundle, getResourceBundleName, getSecureLogging, getSecureLoggingFormatter, getSecureLoggingString, getUnmodifiableDefaultValue, isAssignableFrom, isCacheable, isCollectionOrMap, isDerived, isIdProperty, isIgnoreNullValue, isLoggingDebug, isMultiValued, isPersistent, isSecureLogging, isValidValue, isVersionable, isVersionableSet, registerPropertyDescriptorClass, setCacheable, setCascadeDelete, setCascadeInsert, setCascadeUpdate, setDefaultValue, setDefaultValueString, setDerived, setIdProperty, setIgnoreNullValue, setItemDescriptor, setLoggingDebug, setPersistent, setPropertyValue, setQueryable, setResourceBundleName, setSecureLogging, setSecureLoggingFormatter, setVersionable, toStringcreateLocalePropertyEditor, createLocalePropertyEditor, createPropertyEditor, getComponentPropertyType, getLocale, getPropertyEditorClass, getUIPropertyEditor, isReadable, isRequired, setPropertyEditorClass, setReadable, setRequired, setWritablecopyFeatureDescriptor, getDisplayName, getDisplayNameResource, getDisplaySortString, getShortDescription, getShortDescriptionResource, getSortString, setDisplayNameResource, setShortDescriptionResourcepublic 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 RepositoryPropertyDescriptorpublic boolean isWritable()
isWritable in class DynamicPropertyDescriptorpublic 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 RepositoryPropertyDescriptorpublic void setValue(java.lang.String pAttributeName,
java.lang.Object pValue)
setValue in class RepositoryPropertyDescriptorpublic java.lang.String getTypeName()
getTypeName in class RepositoryPropertyDescriptorpublic java.lang.Class getPropertyType()
DynamicPropertyDescriptorgetPropertyType in class DynamicPropertyDescriptorpublic void setPropertyType(java.lang.Class pClass)
setPropertyType in class RepositoryPropertyDescriptorpublic void setComponentPropertyType(java.lang.Class pClass)
DynamicPropertyDescriptorsetComponentPropertyType in class DynamicPropertyDescriptorpClass - new value to setpublic void setPropertyItemDescriptor(RepositoryItemDescriptor pDesc)
RepositoryPropertyDescriptorsetPropertyItemDescriptor in class RepositoryPropertyDescriptorpDesc - new value to setpublic void setComponentItemDescriptor(RepositoryItemDescriptor pDesc)
RepositoryPropertyDescriptorsetComponentItemDescriptor in class RepositoryPropertyDescriptorpDesc - new value to set