public class OwRoleOptionAttributeBag extends Object implements OwAttributeBag
Since the role manager is only available after login and we need the option ID bag before, we use this delegate. Maps option node names to IDs e.g.: "viewerservlet" - "viewerservlet.myid"
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 |
|---|
OwRoleOptionAttributeBag() |
| Modifier and Type | Method and Description |
|---|---|
int |
attributecount()
get the number of attributes, or -1 if unknown
|
Object |
getAttribute(int index_p)
get a object at the specified index or throws OwObjectNotFoundException
|
Object |
getAttribute(String strName_p)
get the attribute with the given name or throws OwObjectNotFoundException
|
Collection |
getAttributeNames()
get all attribute names in the bag
|
Object |
getSafeAttribute(String strName_p,
Object default_p)
get the attribute with the given name, returns default if not found.
|
boolean |
hasAttribute(String strName_p)
check if attribute exists
|
void |
setIDs(Collection ids_p)
set the IDs after login
|
public void setIDs(Collection ids_p)
public int attributecount()
OwAttributeBagattributecount in interface OwAttributeBagpublic Object getAttribute(int index_p) throws Exception
OwAttributeBaggetAttribute in interface OwAttributeBagindex_p - int indexExceptionpublic Object getAttribute(String strName_p) throws Exception
OwAttributeBaggetAttribute in interface OwAttributeBagExceptionpublic Collection getAttributeNames()
OwAttributeBaggetAttributeNames in interface OwAttributeBagpublic Object getSafeAttribute(String strName_p, Object default_p)
OwAttributeBaggetSafeAttribute in interface OwAttributeBagpublic boolean hasAttribute(String strName_p)
OwAttributeBaghasAttribute in interface OwAttributeBagCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.