|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ecm.OwAttributeBagResolver
public class OwAttributeBagResolver
Implements a helper class that resolves attribute bags for the getAttributeBagWriteable methods in the OwNetwork adapters.
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 | |
|---|---|
protected OwStandardDBAttributeBagWriteableFactory |
m_writeablebagfactory
factory for pooled attribute bags |
static String |
STANDARD_DB_ATTRIBUTE_BAG_TABLE_NAME
standard table for writable attribute bags, this table must exist in order to persist writable attribute bags |
| Constructor Summary | |
|---|---|
OwAttributeBagResolver()
|
|
| Method Summary | |
|---|---|
static OwAttributeBagResolver |
createAndCheckResolver(OwNetworkContext networkContext_p)
Returns an OwAttributeBagResolver instance if such
an attribute bag support is usable in the given context. |
OwAttributeBag |
getNameKeyAttributeBag(OwNetworkContext context_p,
String bagname_p,
String attributename_p)
get a inverted writable attribute bag based on a attribute name key i.e.: the attributenames of the bag represent the users |
OwAttributeBagWriteable |
getUserKeyAttributeBagWriteable(OwNetworkContext context_p,
String bagname_p,
String username_p)
get a writable attribute bag based an a user key i.e.: the attributenames of the bag represent the attribute names |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String STANDARD_DB_ATTRIBUTE_BAG_TABLE_NAME
protected OwStandardDBAttributeBagWriteableFactory m_writeablebagfactory
| Constructor Detail |
|---|
public OwAttributeBagResolver()
| Method Detail |
|---|
public static OwAttributeBagResolver createAndCheckResolver(OwNetworkContext networkContext_p)
throws OwNotSupportedException
OwAttributeBagResolver instance if such
an attribute bag support is usable in the given context. Fails with OwNotSupportedException
otherwise.
networkContext_p -
OwAttributeBagResolver instance
OwNotSupportedException - if the DB attribute bags can not be used (egg. no DB connection is defined
public OwAttributeBag getNameKeyAttributeBag(OwNetworkContext context_p,
String bagname_p,
String attributename_p)
throws Exception
getNameKeyAttributeBag in interface OwAttributeBagsSupportcontext_p - bagname_p - attributename_p -
OwAttributeBag
Exception
OwExceptionOwNetwork.APPLICATION_OBJECT_TYPE_INVERTED_ATTRIBUTE_BAG
public OwAttributeBagWriteable getUserKeyAttributeBagWriteable(OwNetworkContext context_p,
String bagname_p,
String username_p)
throws Exception
getUserKeyAttributeBagWriteable in interface OwAttributeBagsSupportcontext_p - bagname_p - username_p -
OwAttributeBagWriteable
Exception
OwExceptionOwNetwork.APPLICATION_OBJECT_TYPE_ATTRIBUTE_BAG_WRITABLE
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||