|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OwCMISPropertyNames>
com.wewebu.ow.server.ecmimpl.cmis.property.OwCMISPropertyNames
public enum OwCMISPropertyNames
OwCMISPropertyNames enumeration and helper class. Enumeration for the frequently used properties, with helper methods to retrieve that property from native CmisObjectType.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Nested Class Summary | |
---|---|
protected static class |
OwCMISPropertyNames.SyncList
SyncList is a helper class for singleton implementation. |
Enum Constant Summary | |
---|---|
ALLOWED_CHILD_OBJECTTYPE_IDS
Constant for the cmis:allowedChildObjecttypeIDs property |
|
BASE_TYPE_ID
Constant for the cmis:baseTypeId property |
|
CHANGE_TOKEN
Constant for the cmis:changeToken property |
|
CHECKIN_COMMENT
Constant for the cmis:checkinComment property |
|
CONTENT_STREAM_FILENAME
Constant for the cmis:contentStreamFileName property |
|
CONTENT_STREAM_ID
Constant for the cmis:contentStreamId property |
|
CONTENT_STREAM_LENGTH
Constant for the cmis:contentStreamLength property |
|
CONTENT_STREAM_MIME_TYPE
Constant for the cmis:contentStreamMimeType property |
|
IS_IMMUTABLE
Constant for the cmis:isImmutable property |
|
IS_LATEST_MAJOR_VERSION
Constant for the cmis:isLatestMajorVersion property |
|
IS_LATEST_VERSION
Constant for the cmis:isLatestVersion property |
|
IS_MAJOR_VERSION
Constant for the cmis:isMajorVersion property |
|
IS_VERSION_SERIES_CHECKED_OUT
Constant for the cmis:isVersionSeriesCheckedOut property |
|
NAME
Constant for the cmis:name property |
|
NONE
Constant for the value cmis:none which is used very often, not a real property |
|
OBJECT_ID
Constant for the cmis:objectId property |
|
OBJECT_TYPE_ID
Constant for the cmis:objectTypeId property |
|
PARENT_ID
Constant for the cmis:parentId property |
|
PATH
Constant for the cmis:path property |
|
VERSION_LABEL
Constant for the cmis:versionLabel property |
|
VERSION_SERIES_CHECKED_OUT_BY
Constant for the cmis:versionSeriesCheckedOutBy property |
|
VERSION_SERIES_CHECKED_OUT_ID
Constant for the cmis:versionSeriesCheckedOutId property |
|
VERSION_SERIES_ID
Constant for the cmis:versionSeriesId property |
Method Summary | |
---|---|
org.oasis_open.docs.ns.cmis.core._200908.CmisProperty |
fromObject(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p)
Try to retrieve the property form native CmisObjectType calling fromPropertyList(List) , can return null
if the CmisObjectType does not contain that property. |
org.oasis_open.docs.ns.cmis.core._200908.CmisProperty |
fromPropertyList(List<org.oasis_open.docs.ns.cmis.core._200908.CmisProperty> propertyList_p)
Trying to find the property in given collection, comparing the property definition id with getId() . |
Boolean |
getBooleanValue(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p)
Retrieve the single Boolean value form the current selected property, which should be retrieved with the given CmisObjectType. |
String |
getId()
Return a String which represents the id/name of the property. |
String |
getIdValue(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p)
Retrieve the single String value from the property which should be contained in the CmisObjectType. |
String |
getStringValue(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p)
Retrieve the single String value from the property which should be contained in the CmisObjectType. |
static List<String> |
getSystemPropertiesCmisNames()
Return an object-type independent list of properties which are system properties. |
boolean |
isSameId(org.oasis_open.docs.ns.cmis.core._200908.CmisPropertyDefinitionType propertyDefinitionType_p)
Comparing given CmisPropertyDefinitionType.getId with current selected property id, delegating to isSameId(String) . |
boolean |
isSameId(String id_p)
Comparing given id with current selected property id, using String.equals(..). |
boolean |
isSystemProperty()
Return boolean if this property is an object type independent system property. |
static OwCMISPropertyNames |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OwCMISPropertyNames[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final OwCMISPropertyNames PATH
public static final OwCMISPropertyNames ALLOWED_CHILD_OBJECTTYPE_IDS
public static final OwCMISPropertyNames BASE_TYPE_ID
public static final OwCMISPropertyNames IS_IMMUTABLE
public static final OwCMISPropertyNames CHECKIN_COMMENT
public static final OwCMISPropertyNames IS_VERSION_SERIES_CHECKED_OUT
public static final OwCMISPropertyNames IS_LATEST_MAJOR_VERSION
public static final OwCMISPropertyNames IS_MAJOR_VERSION
public static final OwCMISPropertyNames VERSION_SERIES_CHECKED_OUT_BY
public static final OwCMISPropertyNames VERSION_SERIES_CHECKED_OUT_ID
public static final OwCMISPropertyNames IS_LATEST_VERSION
public static final OwCMISPropertyNames CHANGE_TOKEN
public static final OwCMISPropertyNames VERSION_LABEL
public static final OwCMISPropertyNames CONTENT_STREAM_ID
public static final OwCMISPropertyNames VERSION_SERIES_ID
public static final OwCMISPropertyNames PARENT_ID
public static final OwCMISPropertyNames OBJECT_ID
public static final OwCMISPropertyNames NAME
public static final OwCMISPropertyNames OBJECT_TYPE_ID
public static final OwCMISPropertyNames CONTENT_STREAM_MIME_TYPE
public static final OwCMISPropertyNames CONTENT_STREAM_FILENAME
public static final OwCMISPropertyNames CONTENT_STREAM_LENGTH
public static final OwCMISPropertyNames NONE
Method Detail |
---|
public static OwCMISPropertyNames[] values()
for (OwCMISPropertyNames c : OwCMISPropertyNames.values()) System.out.println(c);
public static OwCMISPropertyNames valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static List<String> getSystemPropertiesCmisNames()
public boolean isSystemProperty()
public String getId()
public org.oasis_open.docs.ns.cmis.core._200908.CmisProperty fromObject(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p)
fromPropertyList(List)
, can return null
if the CmisObjectType does not contain that property.
cmisObject_p
- CmisObjectType, non-null value
public org.oasis_open.docs.ns.cmis.core._200908.CmisProperty fromPropertyList(List<org.oasis_open.docs.ns.cmis.core._200908.CmisProperty> propertyList_p)
getId()
.
propertyList_p
- List of native CmisProperty
public String getIdValue(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p) throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
ATTENTION: This method will not dynamically make a retrieve from back-end system and could end up in a NullPointerException.
cmisObject_p
-
com.wewebu.ow.server.exceptions.OwInvalidOperationException
- if type of property is not matching CmisPropertyIdpublic Boolean getBooleanValue(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p) throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
ATTENTION: This method will not dynamically make a retrieve from back-end system and could end up in a NullPointerException.
cmisObject_p
- CmisObjectType from where to retrieve
com.wewebu.ow.server.exceptions.OwInvalidOperationException
- if type of property is not matching CmisPropertyBooleanpublic String getStringValue(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType cmisObject_p) throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
ATTENTION: This method will not dynamically make a retrieve from back-end system and could end up in a NullPointerException.
cmisObject_p
-
com.wewebu.ow.server.exceptions.OwInvalidOperationException
- if type of property is not matching CmisPropertyStringpublic boolean isSameId(String id_p)
id_p
- String representing Id to compare with
public boolean isSameId(org.oasis_open.docs.ns.cmis.core._200908.CmisPropertyDefinitionType propertyDefinitionType_p)
isSameId(String)
.
propertyDefinitionType_p
- CmisPropertyDefinitionType to use for comparison
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |