com.wewebu.ow.server.ecm
Interface OwVirtualFolderObjectFactory

All Known Implementing Classes:
OwStandardVirtualFolderObjectFactory

public interface OwVirtualFolderObjectFactory

Base Class for virtual folder object factories. The factory is created and cached in the ECM-System. You retrieve objects with getInstance(String strDmsIDPart_p)
They are constructed using a XML root node given in the init method, which must be overridden in the implementation of your virtual folder object factory. With the getInstance(String strDmsIDPart_p) you can retrieve instances of virtual folders which can be treated as any other OwObject.

To be implemented with the specific ECM system.

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
static String CLASSNAME_TAG_NAME
          name of the classname node tag for the virtual folder class
static String ROOT_NODE_TAG_NAME
          name of the root node tag
 
Method Summary
 OwVirtualFolderObject getInstance(String strDmsIDPart_p)
          get a folder instance from the factory with the given DMSID part.
 void init(OwNetworkContext context_p, OwRepository repository_p, String strBaseDMSID_p, String virtualFolderName_p, Node rootNode_p)
          init a virtual folder object
 

Field Detail

ROOT_NODE_TAG_NAME

static final String ROOT_NODE_TAG_NAME
name of the root node tag

See Also:
Constant Field Values

CLASSNAME_TAG_NAME

static final String CLASSNAME_TAG_NAME
name of the classname node tag for the virtual folder class

See Also:
Constant Field Values
Method Detail

init

void init(OwNetworkContext context_p,
          OwRepository repository_p,
          String strBaseDMSID_p,
          String virtualFolderName_p,
          Node rootNode_p)
          throws Exception
init a virtual folder object

Parameters:
context_p - OwNetworkContext
repository_p - OwRepository
strBaseDMSID_p - String name to identify the virtual folder by the DMSID, to be extended by instance part (see getInstance)
rootNode_p - Node XML root node describing the virtual folder
virtualFolderName_p - name of the virtual folder
Throws:
Exception

getInstance

OwVirtualFolderObject getInstance(String strDmsIDPart_p)
                                  throws Exception
get a folder instance from the factory with the given DMSID part. The complete DMSID is strBaseDMSID_p + strDmsIDPart_p (see init)

Parameters:
strDmsIDPart_p - String DMSID part for the instance, or null to get a default virtual folder
Returns:
OwVirtualFolderObject
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.