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
Modifier and Type | Method and Description |
---|---|
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) |
List<org.apache.chemistry.opencmis.client.api.Rendition> |
secureRenditions(Set<String> renditions,
boolean refresh) |
void |
setProperties(Map<String,Object> propertyValues)
Persists to the CMIS-ECM and sets the mapped property values to the underlying
TransientCmisObject . |
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 securedTransientCmisObject
state data with the given properties securedcom.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 securedTransientCmisObject
state data with the given properties securedcom.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 securedTransientCmisObject
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 securedcom.wewebu.ow.server.exceptions.OwException
List<org.apache.chemistry.opencmis.client.api.Rendition> secureRenditions(Set<String> renditions, boolean refresh) throws com.wewebu.ow.server.exceptions.OwException
renditions
- string filter of renditions to securerefresh
- true to retrieve again available renditionscom.wewebu.ow.server.exceptions.OwException
void setProperties(Map<String,Object> propertyValues)
TransientCmisObject
.propertyValues
- void refresh(Collection<String> propertyNames)
propertyNames
- void detach()
boolean isDetached()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.