com.wewebu.ow.server.ao
Class OwRepositoryAOSupport

java.lang.Object
  extended by com.wewebu.ow.server.ao.OwRepositoryAOSupport
All Implemented Interfaces:
OwAOSupport

public class OwRepositoryAOSupport
extends Object
implements OwAOSupport

Simple Repository based OwAOSupport. Will retrieve ApplicationObjects (Searchtemplates,...) from a repository, using the provided OwNetwork.

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


Constructor Summary
OwRepositoryAOSupport(OwNetwork network_p, String path_p, int[] objectTypes_p, int versionSelection_p, String aoClassName_p)
          Create an instance with a max size of Integer.MAX_VALUE for object retrieval.
OwRepositoryAOSupport(OwNetwork network_p, String path_p, int[] objectTypes_p, int versionSelection_p, String aoClassName_p, int maxSize_p)
          Create an instance with a max size of Integer.MAX_VALUE, for object retrieval.
 
Method Summary
 int getMaxSize()
          Get maximum retrieval size.
 OwObject getSupportObject(String strName_p, boolean forceUserspecificObject_p, boolean createIfNotExist_p)
          Returns the persistent application OwObject that is matched by the given name.
 OwObject[] getSupportObjects(String strName_p, boolean forceUserspecificObject_p, boolean createIfNotExist_p)
          Returns a collection of persistent application OwObjects that are matched by the given name.
 void setMaxSize(int maxSize_p)
          Set max size to be used during retrieval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwRepositoryAOSupport

public OwRepositoryAOSupport(OwNetwork network_p,
                             String path_p,
                             int[] objectTypes_p,
                             int versionSelection_p,
                             String aoClassName_p)
Create an instance with a max size of Integer.MAX_VALUE for object retrieval.

Parameters:
network_p - OwNetwork to use
path_p - String path where to search
objectTypes_p - types to request
versionSelection_p - int version selection see OwSearchtTemplate
aoClassName_p - String objectclass new to create new instances

OwRepositoryAOSupport

public OwRepositoryAOSupport(OwNetwork network_p,
                             String path_p,
                             int[] objectTypes_p,
                             int versionSelection_p,
                             String aoClassName_p,
                             int maxSize_p)
Create an instance with a max size of Integer.MAX_VALUE, for object retrieval.

Parameters:
network_p - OwNetwork to use
path_p - String path where to search
objectTypes_p - types to request
versionSelection_p - int version selection see OwSearchtTemplate
aoClassName_p - String objectclass new to create new instances
maxSize_p - int number of maximum children to retrieve
Method Detail

getSupportObject

public OwObject getSupportObject(String strName_p,
                                 boolean forceUserspecificObject_p,
                                 boolean createIfNotExist_p)
                          throws OwException
Description copied from interface: OwAOSupport
Returns the persistent application OwObject that is matched by the given name.

Specified by:
getSupportObject in interface OwAOSupport
Parameters:
strName_p - name of the object to retrieve e.g. "userprefs"
forceUserspecificObject_p - if true, the object must be specific to the logged in user, otherwise the ECM Adapter determines if it is common to a site or specific to a group or a user.
createIfNotExist_p - if true the object will be created if it does not exist
Returns:
an application object stored as OwObject
Throws:
OwException - if the given object could not be retrieved

getSupportObjects

public OwObject[] getSupportObjects(String strName_p,
                                    boolean forceUserspecificObject_p,
                                    boolean createIfNotExist_p)
                             throws OwException
Description copied from interface: OwAOSupport
Returns a collection of persistent application OwObjects that are matched by the given name.

Specified by:
getSupportObjects in interface OwAOSupport
Parameters:
strName_p - name of the objects to retrieve e.g. "userprefs"
forceUserspecificObject_p - if true, the object must be specific to the logged in user, otherwise the ECM Adapter determines if it is common to a site or specific to a group or a user.
createIfNotExist_p - if true the objects container will be created if it does not exist
Returns:
a collection object stored as OwObject. Some entries might be null if the implementation of this support allows it (usually null entries signal objects that could not be retrieved).
Throws:
OwException - if the given object could not be retrieved

getMaxSize

public int getMaxSize()
Get maximum retrieval size.

Returns:
int

setMaxSize

public void setMaxSize(int maxSize_p)
Set max size to be used during retrieval.

Parameters:
maxSize_p - int amount


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.