public class OwAutoAttributeBagSupport extends Object implements OwAttributeBagsSupport, OwConfigurableSupport
Attribute bag support with automatic DB connection detection.
If DB is supported in the current context it will delegate all
functionality to a OwDBAttributeBagsSupport
instance.
If DB is not supported in the current context will delegate all
functionality to a OwTransientBagsSupport
instance.
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 |
---|
OwAutoAttributeBagSupport() |
Modifier and Type | Method and Description |
---|---|
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
|
void |
init(OwSupportConfiguration configuration,
OwAOContext context) |
public OwAttributeBag getNameKeyAttributeBag(OwNetworkContext networkContext_p, String name_p, String userID_p) throws Exception
OwAttributeBagsSupport
getNameKeyAttributeBag
in interface OwAttributeBagsSupport
OwAttributeBag
OwException
Exception
OwNetwork.APPLICATION_OBJECT_TYPE_INVERTED_ATTRIBUTE_BAG
public OwAttributeBagWriteable getUserKeyAttributeBagWriteable(OwNetworkContext networkContext_p, String name_p, String userID_p) throws Exception
OwAttributeBagsSupport
getUserKeyAttributeBagWriteable
in interface OwAttributeBagsSupport
OwAttributeBagWriteable
OwException
Exception
public void init(OwSupportConfiguration configuration, OwAOContext context) throws OwConfigurationException
init
in interface OwConfigurableSupport
OwConfigurationException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.