com.wewebu.ow.server.ecmimpl.owdummy
Class OwDummyMandator

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.owdummy.OwDummyMandator
All Implemented Interfaces:
com.wewebu.ow.server.mandator.OwMandator, com.wewebu.ow.server.util.OwAttributeBag

public class OwDummyMandator
extends Object
implements com.wewebu.ow.server.mandator.OwMandator

Dummy implementation for mandators to specify the mandator configuration data.

You get a instance of the mandator manager by calling getContext().getMandatorManager().getUserMandator() .

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
OwDummyMandator(OwDummyMandatorManager manager_p, com.wewebu.ow.server.conf.OwBaseUserInfo owBaseUserInfo_p)
          construct simple mandator
 
Method Summary
 int attributecount()
           
 String filterRoleName(String rolename_p)
          create a unique role name for the given role name
 Object getAttribute(int index_p)
           
 Object getAttribute(String strName_p)
           
 Collection getAttributeNames()
           
 com.wewebu.ow.server.mandator.OwMandatorManagerContext getContext()
          get the context
 String getDescription()
          get a description for this mandator
 String getID()
          get a unique ID for this mandator
 String getName()
          get a name for this mandator
 Object getSafeAttribute(String strName_p, Object default_p)
           
 boolean hasAttribute(String strName_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwDummyMandator

public OwDummyMandator(OwDummyMandatorManager manager_p,
                       com.wewebu.ow.server.conf.OwBaseUserInfo owBaseUserInfo_p)
construct simple mandator

Parameters:
manager_p -
owBaseUserInfo_p -
Method Detail

getContext

public com.wewebu.ow.server.mandator.OwMandatorManagerContext getContext()
get the context

Returns:
an OwMandatorManagerContext

getID

public String getID()
get a unique ID for this mandator

Specified by:
getID in interface com.wewebu.ow.server.mandator.OwMandator
Returns:
the String ID

getName

public String getName()
get a name for this mandator

Specified by:
getName in interface com.wewebu.ow.server.mandator.OwMandator
Returns:
a String

getDescription

public String getDescription()
get a description for this mandator

Specified by:
getDescription in interface com.wewebu.ow.server.mandator.OwMandator
Returns:
a String

attributecount

public int attributecount()
Specified by:
attributecount in interface com.wewebu.ow.server.util.OwAttributeBag

getAttribute

public Object getAttribute(int index_p)
                    throws Exception
Specified by:
getAttribute in interface com.wewebu.ow.server.util.OwAttributeBag
Throws:
Exception

getAttribute

public Object getAttribute(String strName_p)
                    throws Exception
Specified by:
getAttribute in interface com.wewebu.ow.server.util.OwAttributeBag
Throws:
Exception

getAttributeNames

public Collection getAttributeNames()
Specified by:
getAttributeNames in interface com.wewebu.ow.server.util.OwAttributeBag

getSafeAttribute

public Object getSafeAttribute(String strName_p,
                               Object default_p)
Specified by:
getSafeAttribute in interface com.wewebu.ow.server.util.OwAttributeBag

hasAttribute

public boolean hasAttribute(String strName_p)
Specified by:
hasAttribute in interface com.wewebu.ow.server.util.OwAttributeBag

filterRoleName

public String filterRoleName(String rolename_p)
create a unique role name for the given role name

Specified by:
filterRoleName in interface com.wewebu.ow.server.mandator.OwMandator
Parameters:
rolename_p -
Returns:
String role name


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.