|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OwCMISTransientObject<N extends org.apache.chemistry.opencmis.client.api.TransientCmisObject>
Abstraction of inner OwCMISNativeObject
transient states.
Implementors relay on OperationContext
s and TransientCmisObject
s to provide a
centralized cache for CMIS property values.
Transient objects are used to provide a so-called secured TransientCmisObject
:
the TransientCmisObject
MWD object state with certain properties cached.
Using secured TransientCmisObject
guarantees that their method calls will not fail
because of missing properties if the secured object was obtained through securing OwCMISTransientObject methods.
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
Method Summary | |
---|---|
void |
detach()
Detaches this transient object form the ECM CMIS repository. |
N |
getTransientCmisObject()
|
org.apache.chemistry.opencmis.client.api.OperationContext |
getTransientContext()
|
boolean |
isDetached()
|
void |
refresh(Collection<String> propertyNames)
Refreshes the requested cached CMIS properties. |
N |
secureObject(Collection<String> propertyNames)
|
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)
|
void |
setProperties(Map<String,Object> propertyValues)
Persists to the CMIS-ECM and sets the mapped property values to the underlying TransientCmisObject . |
Method Detail |
---|
org.apache.chemistry.opencmis.client.api.OperationContext getTransientContext()
N getTransientCmisObject()
TransientCmisObject
state dataN secureObject(String... propertyNames) throws com.wewebu.ow.server.exceptions.OwException
propertyNames
- CMIS property IDs that need to be secured
TransientCmisObject
state data with the given properties secured
com.wewebu.ow.server.exceptions.OwException
N secureObject(Collection<String> propertyNames) throws com.wewebu.ow.server.exceptions.OwException
propertyNames
- CMIS property IDs that need to be secured
TransientCmisObject
state data with the given properties secured
com.wewebu.ow.server.exceptions.OwException
Map<String,org.apache.chemistry.opencmis.client.api.Property<?>> secureProperties(Collection<String> propertyNames) throws com.wewebu.ow.server.exceptions.OwException
propertyNames
- CMIS property IDs that need to be secured
TransientCmisObject
will also have the requested properties secured.
com.wewebu.ow.server.exceptions.OwException
org.apache.chemistry.opencmis.client.api.Property<?> secureProperty(String propertyName) throws com.wewebu.ow.server.exceptions.OwException
propertyName
- CMIS property ID that needs to be secured
com.wewebu.ow.server.exceptions.OwException
void setProperties(Map<String,Object> propertyValues)
TransientCmisObject
.
propertyValues
- void refresh(Collection<String> propertyNames)
propertyNames
- void detach()
boolean isDetached()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |