com.wewebu.ow.server.ao
Class OwDBAttributeBagsSupport

java.lang.Object
  extended by com.wewebu.ow.server.ao.OwDBAttributeBagsSupport
All Implemented Interfaces:
OwAttributeBagsSupport

public class OwDBAttributeBagsSupport
extends Object
implements OwAttributeBagsSupport

An application OwAttributeBag support to be used with Alfresco Workdesk DB connections.

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
OwDBAttributeBagsSupport()
          Constructor
 
Method Summary
static OwDBAttributeBagsSupport createAndCheckDBSupport(OwNetworkContext networkContext_p)
          Returns an OwDBAttributeBagsSupport instance if such an attribute bag support is usable in the given context.
 OwAttributeBag getNameKeyAttributeBag(OwNetworkContext networkContext_p, String name_p, String userID_p)
          get a inverted writable attribute bag based an a attribute name key i.e.: the attributenames of the bag represent the users
 OwAttributeBagWriteable getUserKeyAttributeBagWriteable(OwNetworkContext networkContext_p, String name_p, String userID_p)
          get a writable attribute bag based an a user key i.e.: the attributenames of the bag represent the attribute names
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OwDBAttributeBagsSupport

public OwDBAttributeBagsSupport()
Constructor

Method Detail

createAndCheckDBSupport

public static OwDBAttributeBagsSupport createAndCheckDBSupport(OwNetworkContext networkContext_p)
                                                        throws OwNotSupportedException
Returns an OwDBAttributeBagsSupport instance if such an attribute bag support is usable in the given context. Fails with OwNotSupportedException otherwise.

Parameters:
networkContext_p -
Returns:
an OwDBAttributeBagsSupport instance
Throws:
OwNotSupportedException - if the DB attribute bags can not be used (egg. no DB connection is defined)

getNameKeyAttributeBag

public OwAttributeBag getNameKeyAttributeBag(OwNetworkContext networkContext_p,
                                             String name_p,
                                             String userID_p)
                                      throws OwException
Description copied from interface: OwAttributeBagsSupport
get a inverted writable attribute bag based an a attribute name key i.e.: the attributenames of the bag represent the users

Specified by:
getNameKeyAttributeBag in interface OwAttributeBagsSupport
Returns:
an OwAttributeBag
Throws:
OwException
See Also:
OwNetwork.APPLICATION_OBJECT_TYPE_INVERTED_ATTRIBUTE_BAG

getUserKeyAttributeBagWriteable

public OwAttributeBagWriteable getUserKeyAttributeBagWriteable(OwNetworkContext networkContext_p,
                                                               String name_p,
                                                               String userID_p)
                                                        throws OwException
Description copied from interface: OwAttributeBagsSupport
get a writable attribute bag based an a user key i.e.: the attributenames of the bag represent the attribute names

Specified by:
getUserKeyAttributeBagWriteable in interface OwAttributeBagsSupport
Returns:
an OwAttributeBagWriteable
Throws:
OwException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.