com.wewebu.ow.server.ecmimpl.cmis.alfresco
Class OwCMISALUtil

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.alfresco.OwCMISALUtil

public class OwCMISALUtil
extends Object

Alfresco CMIS data manipulation utility class.

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

Since:
3.1.0.0

Constructor Summary
OwCMISALUtil()
           
 
Method Summary
static void cacheAspects(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType object_p, OwCMISNetwork network_p, String resourceID_p)
          Caches the Aspects (applied aspects and aspects properties) for the given CmisObjectType.
static
<T> T
findFirst(List<Object> objectList_p, Class<T> class_p)
          Find first occurrence of given type (class).
static org.alfresco.Aspects resolveAspects(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType object_p, OwCMISNetwork network_p, String resourceID_p)
          Caches and returns the Aspects object associated with the given CmisObjectType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISALUtil

public OwCMISALUtil()
Method Detail

findFirst

public static <T> T findFirst(List<Object> objectList_p,
                              Class<T> class_p)
Find first occurrence of given type (class).

Parameters:
objectList_p - List to search through
class_p - Class which type is requested
Returns:
first occurrence of type in or null if not found

cacheAspects

public static void cacheAspects(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType object_p,
                                OwCMISNetwork network_p,
                                String resourceID_p)
                         throws com.wewebu.ow.server.exceptions.OwException
Caches the Aspects (applied aspects and aspects properties) for the given CmisObjectType. The Aspects object is cached as an element of the any properties extension of the given CmisObjectType. If the Aspects of the given object have already been cached the applied aspects list will be replaced with the latest version obtained from the web service.

Parameters:
object_p - CmisObjectType whose aspects will be cached
network_p - OwCMISNetwork the current network
resourceID_p - String id of the object's residing repository/resource
Throws:
com.wewebu.ow.server.exceptions.OwException

resolveAspects

public static org.alfresco.Aspects resolveAspects(org.oasis_open.docs.ns.cmis.core._200908.CmisObjectType object_p,
                                                  OwCMISNetwork network_p,
                                                  String resourceID_p)
                                           throws com.wewebu.ow.server.exceptions.OwException
Caches and returns the Aspects object associated with the given CmisObjectType. If the Aspects of the given object have already been cached they will not be retrieved from the web service again.

Parameters:
object_p - CmisObjectType objects whose aspects will be retrieved
network_p - OwCMISNetwork the current network
resourceID_p - String id of the object's residing repository/resource
Returns:
the Aspects object associated with the given CmisObjectType obtained by performing a one time web service cache
Throws:
com.wewebu.ow.server.exceptions.OwException
See Also:
cacheAspects(CmisObjectType, OwCMISNetwork, String)


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.