|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.ecmimpl.opencmis.object.OwCMISAbstractTransientObject<N>
public abstract class OwCMISAbstractTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
Caches CmisObject
properties to minimize the number of DMS repository accesses.
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
Field Summary | |
---|---|
protected OwCMISContextBoundObject<N> |
contextBoundObject
|
protected org.apache.chemistry.opencmis.client.api.Session |
session
|
Constructor Summary | |
---|---|
OwCMISAbstractTransientObject(N transientCmisObject,
org.apache.chemistry.opencmis.client.api.OperationContext creationContext,
org.apache.chemistry.opencmis.client.api.Session session)
|
Method Summary | |
---|---|
protected org.apache.chemistry.opencmis.client.api.OperationContext |
addFilter(org.apache.chemistry.opencmis.client.api.OperationContext context,
Set<String> nativePropertyFilter)
|
void |
detach()
Detaches this transient object form the ECM CMIS repository. |
protected org.apache.chemistry.opencmis.client.api.Session |
getSession()
|
N |
getTransientCmisObject()
|
org.apache.chemistry.opencmis.client.api.OperationContext |
getTransientContext()
|
boolean |
isDetached()
|
void |
refresh(Collection<String> propertyNames)
Refreshes the requested cached CMIS properties. |
protected abstract OwCMISContextBoundObject<N> |
retrieveProperties(Set<String> nativePropertyFilter)
|
N |
secureObject(Collection<String> propertyNames)
Make sure we have these properties cached. |
N |
secureObject(String... propertyNames)
|
Map<String,org.apache.chemistry.opencmis.client.api.Property<?>> |
secureProperties(Collection<String> propertyNames)
|
org.apache.chemistry.opencmis.client.api.Property<?> |
secureProperty(String propertyName)
The property is first looked up in the cache, if not found it is loaded from the DMS repository. |
void |
setProperties(Map<String,Object> propertyValues)
Persists to the CMIS-ECM and sets the mapped property values to the underlying TransientCmisObject . |
protected String |
toStringFilter(Set<String> nativePropertyFilter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.chemistry.opencmis.client.api.Session session
protected OwCMISContextBoundObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject> contextBoundObject
Constructor Detail |
---|
public OwCMISAbstractTransientObject(N transientCmisObject, org.apache.chemistry.opencmis.client.api.OperationContext creationContext, org.apache.chemistry.opencmis.client.api.Session session)
Method Detail |
---|
public void detach()
OwCMISTransientObject
detach
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
public boolean isDetached()
isDetached
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
protected org.apache.chemistry.opencmis.client.api.Session getSession()
public org.apache.chemistry.opencmis.client.api.OperationContext getTransientContext()
getTransientContext
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
public N getTransientCmisObject()
getTransientCmisObject
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
TransientCmisObject
state dataprotected abstract OwCMISContextBoundObject<N> retrieveProperties(Set<String> nativePropertyFilter) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
protected final String toStringFilter(Set<String> nativePropertyFilter)
protected org.apache.chemistry.opencmis.client.api.OperationContext addFilter(org.apache.chemistry.opencmis.client.api.OperationContext context, Set<String> nativePropertyFilter)
public N secureObject(String... propertyNames) throws com.wewebu.ow.server.exceptions.OwException
secureObject
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
propertyNames
- CMIS property IDs that need to be secured
TransientCmisObject
state data with the given properties secured
com.wewebu.ow.server.exceptions.OwException
public N secureObject(Collection<String> propertyNames) throws com.wewebu.ow.server.exceptions.OwException
secureObject
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
propertyNames
-
TransientCmisObject
state data with the given properties secured
com.wewebu.ow.server.exceptions.OwException
public Map<String,org.apache.chemistry.opencmis.client.api.Property<?>> secureProperties(Collection<String> propertyNames) throws com.wewebu.ow.server.exceptions.OwException
secureProperties
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
propertyNames
- Collection of String (native property names)
com.wewebu.ow.server.exceptions.OwException
public org.apache.chemistry.opencmis.client.api.Property<?> secureProperty(String propertyName) throws com.wewebu.ow.server.exceptions.OwException
secureProperty
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
propertyName
- native property name (not qualified)
com.wewebu.ow.server.exceptions.OwException
- If the property is not defined for this object or it could not be retrieved from the DMS repository.public void refresh(Collection<String> propertyNames)
OwCMISTransientObject
refresh
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
public void setProperties(Map<String,Object> propertyValues)
OwCMISTransientObject
TransientCmisObject
.
setProperties
in interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |