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 and Description |
|---|
OwDBAttributeBagsSupport()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public static OwDBAttributeBagsSupport createAndCheckDBSupport(OwNetworkContext networkContext_p) throws OwNotSupportedException
OwDBAttributeBagsSupport instance if such
an attribute bag support is usable in the given context. Fails with OwNotSupportedException
otherwise.networkContext_p - OwDBAttributeBagsSupport instanceOwNotSupportedException - if the DB attribute bags can not be used (egg. no DB connection is defined)public OwAttributeBag getNameKeyAttributeBag(OwNetworkContext networkContext_p, String name_p, String userID_p) throws OwException
OwAttributeBagsSupportgetNameKeyAttributeBag in interface OwAttributeBagsSupportOwAttributeBagOwExceptionOwNetwork.APPLICATION_OBJECT_TYPE_INVERTED_ATTRIBUTE_BAGpublic OwAttributeBagWriteable getUserKeyAttributeBagWriteable(OwNetworkContext networkContext_p, String name_p, String userID_p) throws OwException
OwAttributeBagsSupportgetUserKeyAttributeBagWriteable in interface OwAttributeBagsSupportOwAttributeBagWriteableOwExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.