|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.cm.util.EboDocPropUtil
This class contains utility methods for managing information about the available standard Document Metadata properties (doc ID, author, etc.)
Field Summary | |
static String |
AUTHOR
The author property |
static String |
CONTENTSIZE
The document published content size property |
static String |
CREATED
The creation date/time property |
static String |
DOCABSTRACT
The document abstract property |
static String |
DOCID
The Document ID property. |
static String |
DOCNAME
The document name property |
static String |
DOCTYPEID
The document type ID property |
static String |
DOCTYPENAME
The document type name property |
static String |
ENCODING
The document published content ENCODING property |
static String |
EXPIRATIONDATE
The expiration date/time property |
static String |
FOLDERID
The folder ID property |
static int |
IDX_AUTHOR
The index of the author property |
static int |
IDX_CONTENTSIZE
The index of the document published content size property |
static int |
IDX_CREATED
The index of the creation date/time property |
static int |
IDX_DOCABSTRACT
The index of the document abstract property |
static int |
IDX_DOCID
The index of the document ID property |
static int |
IDX_DOCNAME
The index of the document name property |
static int |
IDX_DOCTYPEID
The index of the document type ID property |
static int |
IDX_DOCTYPENAME
The index of the document type name property |
static int |
IDX_ENCODING
The index of the document published content ENCODING property |
static int |
IDX_EXPIRATIONDATE
The index of the expiration date/time property |
static int |
IDX_FOLDERID
The index of the folder ID property |
static int |
IDX_LOCKEDBY
The index of the 'locked by' property. |
static int |
IDX_MIMETYPE
The index of the document published content MIME type property |
static int |
IDX_ORIGINATOR
The index of the document originator property |
static int |
IDX_PARENTDOCID
The index of the parent document ID property |
static int |
IDX_PUBLISHDATE
The index of the publish date/time property |
static int |
IDX_PUBLISHSTATUS
The index of the document publish status property |
static int |
IDX_REPOSITORYID
The index of the repository ID property |
static int |
IDX_STATUS
The index of the status property |
static int |
IDX_SUBTITLE
The index of the subtitle property |
static int |
IDX_TITLE
The index of the title property |
static int |
IDX_UPDATETIME
The index of the update time property |
static int |
IDX_UPDATEUSER
The update user property index |
static String |
LOCKEDBY
The 'locked by' property. |
static String |
MIMETYPE
The document published content MIME type property |
static String |
ORIGINATOR
The document originator property |
static String |
PARENTDOCID
The parent document ID property |
static String |
PUBLISHDATE
The publish date/time property |
static String |
PUBLISHSTATUS
The document publish status property |
static String |
REPOSITORYID
The repository ID property |
static int |
SORT_BY_PROP_DISPLAY_NAME
Sort mode of "sort by property display name". |
static int |
SORT_BY_PROP_INDEX
Sort mode of "sort by property index". |
static int |
SORT_BY_PROP_NAME
Sort mode of "sort by property name". |
static int |
SORT_BY_PROP_TYPE
Sort mode of "sort by property type". |
static String |
STATUS
The status property |
static String |
SUBTITLE
The subtitle property |
static String |
TITLE
The title property |
static String |
UPDATETIME
The update time property. |
static String |
UPDATEUSER
The update user property |
Constructor Summary | |
EboDocPropUtil()
|
Method Summary | |
static Object |
getDocPropValue(EbiDocument doc,
String propName)
Given an EbiDocument object and a property name, extracts the value of that property from the object. |
static Collection |
getOperators(int index,
Locale locale,
int sortBy)
Enumerates the operators that are applicable for a given property. |
static Collection |
getOperators(String propName,
Locale locale,
int sortBy)
Enumerates the operators that are applicable for a given property. |
static int |
getPropertyCount()
Gets the number of available standard document properties. |
static EbiDocPropDescriptor |
getPropertyDescriptor(int index,
Locale locale)
Given the index of a property, returns its Document Property Descriptor. |
static Collection |
getPropertyDescriptors(Locale locale)
Enumerates all the document properties, returning a collection of EbiDocPropDescriptor's. |
static Collection |
getPropertyDescriptors(Locale locale,
int sortBy)
Enumerates all the document properties, returning a collection of EbiDocPropDescriptor's, in a sorted fashion |
static String |
getPropertyDisplayName(int index,
Locale locale)
Given the index of a property, gets its user-friendly, displayable name |
static int |
getPropertyIndex(String propName)
Given a property name, returns its index |
static int[] |
getPropertyIndices(String[] docProps)
Given a set of property names, returns their corresponding indices |
static String |
getPropertyName(int index)
Given the index of the property, gets its name |
static boolean |
isIntegerProperty(String propName)
Tells whether the property whose name is passed in, is an integer property (i.e. |
static boolean |
isMandatoryProperty(int index)
Tells whether the property whose index is passed in, is mandatory (i.e. |
static boolean |
isStringProperty(String propName)
Tells whether the property whose name is passed in, is a string property (i.e. |
static boolean |
isTimestampProperty(String propName)
Tells whether the property whose name is passed in, is a timestamp property (i.e. |
static boolean |
isValidProperty(int index)
Given the index of the property, checks to see if the specified property is valid. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final String DOCID
public static final int IDX_DOCID
public static final String DOCNAME
public static final int IDX_DOCNAME
public static final String DOCTYPEID
public static final int IDX_DOCTYPEID
public static final String FOLDERID
public static final int IDX_FOLDERID
public static final String AUTHOR
public static final int IDX_AUTHOR
public static final String CREATED
public static final int IDX_CREATED
public static final String TITLE
public static final int IDX_TITLE
public static final String SUBTITLE
public static final int IDX_SUBTITLE
public static final String DOCABSTRACT
public static final int IDX_DOCABSTRACT
public static final String PUBLISHDATE
public static final int IDX_PUBLISHDATE
public static final String EXPIRATIONDATE
public static final int IDX_EXPIRATIONDATE
public static final String LOCKEDBY
public static final int IDX_LOCKEDBY
public static final String STATUS
public static final int IDX_STATUS
public static final String PARENTDOCID
public static final int IDX_PARENTDOCID
public static final String REPOSITORYID
public static final int IDX_REPOSITORYID
public static final String UPDATETIME
public static final int IDX_UPDATETIME
public static final String UPDATEUSER
public static final int IDX_UPDATEUSER
public static final String PUBLISHSTATUS
public static final int IDX_PUBLISHSTATUS
public static final String ORIGINATOR
public static final int IDX_ORIGINATOR
public static final String DOCTYPENAME
public static final int IDX_DOCTYPENAME
public static final String CONTENTSIZE
public static final int IDX_CONTENTSIZE
public static final String MIMETYPE
public static final int IDX_MIMETYPE
public static final String ENCODING
public static final int IDX_ENCODING
public static final int SORT_BY_PROP_NAME
public static final int SORT_BY_PROP_DISPLAY_NAME
public static final int SORT_BY_PROP_INDEX
public static final int SORT_BY_PROP_TYPE
Constructor Detail |
public EboDocPropUtil()
Method Detail |
public static String getPropertyName(int index)
index
- the index of the propertypublic static boolean isValidProperty(int index)
index
- the indexpublic static int getPropertyIndex(String propName)
propName
- the name of the propertypublic static String getPropertyDisplayName(int index, Locale locale)
index
- the index of the propertylocale
- the locale to use; if null, the default locale is usedpublic static boolean isMandatoryProperty(int index)
index
- the index of the propertypublic static int[] getPropertyIndices(String[] docProps)
docProps
- the list of property namespublic static EbiDocPropDescriptor getPropertyDescriptor(int index, Locale locale)
index
- the index of the propertylocale
- the locale to use; if null, the default locale is usedpublic static Collection getPropertyDescriptors(Locale locale)
locale
- the locale to use; if null, the default locale is usedpublic static Collection getPropertyDescriptors(Locale locale, int sortBy)
locale
- the locale to use; if null, the default locale is usedsortBy
- the sort modepublic static int getPropertyCount()
public static Object getDocPropValue(EbiDocument doc, String propName)
doc
- the document objectpropName
- the name of the propertypublic static Collection getOperators(String propName, Locale locale, int sortBy)
propName
- the name of the propertylocale
- the locale to use; if null, the default locale is usedsortBy
- the sort mode for sorting the returned descriptorspublic static Collection getOperators(int index, Locale locale, int sortBy)
index
- the index of the propertylocale
- the locale to use; if null, the default locale is usedsortBy
- the sort mode for sorting the returned descriptorspublic static boolean isStringProperty(String propName)
propName
- the name of the propertypublic static boolean isTimestampProperty(String propName)
propName
- the name of the propertypublic static boolean isIntegerProperty(String propName)
propName
- the name of the property
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |