public class OwStandardObjectReference extends Object implements OwObjectReference
Standard implementation of the OwObjectReference interface.
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
| Modifier and Type | Field and Description |
|---|---|
protected String |
m_dmsid |
protected boolean |
m_fhascontent |
protected String |
m_id |
protected String |
m_mimeparameter |
protected String |
m_mimetype |
protected String |
m_name |
protected int |
m_pagecount |
protected OwRepository |
m_repository |
protected String |
m_resourceid |
protected int |
m_type |
OBJECT_TYPE_ALL_CONTAINER_OBJECTS, OBJECT_TYPE_ALL_CONTENT_OBJECTS, OBJECT_TYPE_ALL_TUPLE_OBJECTS, OBJECT_TYPE_ALL_WORKFLOW_OBJECTS, OBJECT_TYPE_BPM_ROOT_FOLDER, OBJECT_TYPE_CONTAINER_USER_START, OBJECT_TYPE_CONTENT_USER_START, OBJECT_TYPE_CROSS_QUEUE_FOLDER, OBJECT_TYPE_CUSTOM, OBJECT_TYPE_DOCUMENT, OBJECT_TYPE_DYNAMIC_VIRTUAL_FOLDER, OBJECT_TYPE_ECM_ROOT_FOLDER, OBJECT_TYPE_FOLDER, OBJECT_TYPE_HISTORY, OBJECT_TYPE_LINK, OBJECT_TYPE_PROXY_QUEUE_FOLDER, OBJECT_TYPE_PUBLIC_QUEUE_FOLDER, OBJECT_TYPE_ROSTER_FOLDER, OBJECT_TYPE_ROSTERITEM, OBJECT_TYPE_STORED_SEARCH, OBJECT_TYPE_SYS_QUEUE_FOLDER, OBJECT_TYPE_TRACKER_QUEUE_FOLDER, OBJECT_TYPE_TUPLE_USER_START, OBJECT_TYPE_UNDEFINED, OBJECT_TYPE_USER_QUEUE_FOLDER, OBJECT_TYPE_VIRTUAL_FOLDER, OBJECT_TYPE_WORKFLOW_USER_START, OBJECT_TYPE_WORKITEM, OBJECT_TYPE_WORKITEM_PROXY, OBJECT_TYPE_WORKITEM_TRACKER| Constructor and Description |
|---|
OwStandardObjectReference()
overridable default constructor
override and set members
|
OwStandardObjectReference(String ref_p,
OwRepository repository_p)
Serialized constructor
|
OwStandardObjectReference(String dmsid_p,
String ref_p,
OwRepository repository_p)
serialized constructor
|
OwStandardObjectReference(String dmsid_p,
String name_p,
String mimetype_p,
int itype_p,
String resourceid_p,
OwRepository repository_p,
boolean fHasContent_p)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getCompleteReferenceString(OwObjectReference obj_p,
int iContext_p)
get a reference string that can be used for serialization, with all ref information
|
String |
getDMSID()
get the ECM specific ID of the Object.
|
String |
getID()
get Object symbolic name of the object which is unique among its siblings
used for path construction
|
OwObject |
getInstance()
get a instance from this reference
|
String |
getMIMEParameter()
get the additional MIME Parameter of the Object
|
String |
getMIMEType()
get the MIME Type of the Object
|
String |
getName()
get Object name property string
|
int |
getPageCount()
retrieve the number of pages in the objects
|
static String |
getReferenceString(OwObjectReference obj_p,
int iContext_p)
get a short reference string without DMSID that can be used for serialization
|
String |
getResourceID()
get the ID / name identifying the resource the object belongs to
|
int |
getType()
get Object type
|
boolean |
hasContent(int context_p)
check if the object contains a content, which can be retrieved using getContentCollection
|
protected String m_dmsid
protected String m_id
protected String m_mimeparameter
protected String m_mimetype
protected String m_name
protected int m_pagecount
protected int m_type
protected boolean m_fhascontent
protected String m_resourceid
protected OwRepository m_repository
public OwStandardObjectReference()
public OwStandardObjectReference(String dmsid_p, String name_p, String mimetype_p, int itype_p, String resourceid_p, OwRepository repository_p, boolean fHasContent_p)
dmsid_p - name_p - mimetype_p - itype_p - resourceid_p - repository_p - fHasContent_p - public OwStandardObjectReference(String dmsid_p, String ref_p, OwRepository repository_p)
dmsid_p - String the DMSID of the object referenceref_p - a serialized String obtained with getReferenceString();repository_p - getReferenceString(com.wewebu.ow.server.ecm.OwObjectReference, int)public OwStandardObjectReference(String ref_p, OwRepository repository_p)
ref_p - a serialized String obtained with getCompleteReferenceString();repository_p - getCompleteReferenceString(OwObjectReference, int)public OwObject getInstance() throws Exception
getInstance in interface OwObjectReferenceException, - OwObjectNotFoundExceptionExceptionpublic String getResourceID() throws Exception
getResourceID in interface OwObjectReferenceException, - OwObjectNotFoundExceptionExceptionOwResourcepublic static String getReferenceString(OwObjectReference obj_p, int iContext_p) throws Exception
obj_p - iContext_p - Exceptionfor deserializationpublic static String getCompleteReferenceString(OwObjectReference obj_p, int iContext_p) throws Exception
obj_p - iContext_p - StringExceptionOwStandardObjectReference(String ref_p,OwRepository repository_p)public String getDMSID() throws Exception
OwObjectReferencegetDMSID in interface OwObjectReferenceExceptionpublic String getID()
OwObjectReferencegetID in interface OwObjectReferencepublic String getMIMEParameter() throws Exception
OwObjectReferencegetMIMEParameter in interface OwObjectReferenceExceptionpublic String getMIMEType() throws Exception
OwObjectReferencegetMIMEType in interface OwObjectReferenceExceptionpublic String getName()
OwObjectReferencegetName in interface OwObjectReferencepublic int getPageCount()
throws Exception
OwObjectReferencegetPageCount in interface OwObjectReferenceExceptionpublic int getType()
OwObjectReferencegetType in interface OwObjectReferencepublic boolean hasContent(int context_p)
throws Exception
OwObjectReferencehasContent in interface OwObjectReferencecontext_p - OwStatusContextDefinitionsExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.