org.yawlfoundation.yawl.resourcing.resource
Class UserPrivileges

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.resource.UserPrivileges
All Implemented Interfaces:
Serializable

public class UserPrivileges
extends Object
implements Serializable

Simple repository for participant privileges

Author:
Michael Adams v0.1, 03/08/2007
See Also:
Serialized Form

Constructor Summary
UserPrivileges()
           
UserPrivileges(org.jdom.Element e)
           
UserPrivileges(String pid)
           
UserPrivileges(String pid, boolean canChooseItemToStart, boolean canStartConcurrent, boolean canReorder, boolean canViewAllOffered, boolean canViewAllAllocated, boolean canViewAllExecuting, boolean canViewTeamItems, boolean canViewOrgGroupItems, boolean canChainExecution, boolean canManageCases)
           
 
Method Summary
 void allowAll()
           
 boolean canChainExecution()
           
 boolean canChooseItemToStart()
           
 boolean canManageCases()
           
 boolean canReorder()
           
 boolean canStartConcurrent()
           
 boolean canViewOrgGroupItems()
           
 boolean canViewTeamItems()
           
 UserPrivileges clone()
           
 void disallowAll()
           
 void fromXML(String xml)
           
 String getID()
           
 String getPrivilegesAsBits()
           
 void merge(UserPrivileges up)
           
 void reconstitute(org.jdom.Element e)
           
 void setCanChainExecution(boolean canChainExecution)
           
 void setCanChooseItemToStart(boolean canChooseItemToStart)
           
 void setCanManageCases(boolean canManageCases)
           
 void setCanReorder(boolean canReorder)
           
 void setCanStartConcurrent(boolean canStartConcurrent)
           
 void setCanViewOrgGroupItems(boolean canViewOrgGroupItems)
           
 void setCanViewTeamItems(boolean canViewTeamItems)
           
 void setID(String pid)
           
 void setPrivilegesFromBits(String bits)
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPrivileges

public UserPrivileges()

UserPrivileges

public UserPrivileges(String pid)

UserPrivileges

public UserPrivileges(String pid,
                      boolean canChooseItemToStart,
                      boolean canStartConcurrent,
                      boolean canReorder,
                      boolean canViewAllOffered,
                      boolean canViewAllAllocated,
                      boolean canViewAllExecuting,
                      boolean canViewTeamItems,
                      boolean canViewOrgGroupItems,
                      boolean canChainExecution,
                      boolean canManageCases)

UserPrivileges

public UserPrivileges(org.jdom.Element e)
Method Detail

clone

public UserPrivileges clone()
Overrides:
clone in class Object

merge

public void merge(UserPrivileges up)

allowAll

public void allowAll()

disallowAll

public void disallowAll()

getID

public String getID()

setID

public void setID(String pid)

canChooseItemToStart

public boolean canChooseItemToStart()

canStartConcurrent

public boolean canStartConcurrent()

canReorder

public boolean canReorder()

canChainExecution

public boolean canChainExecution()

canViewOrgGroupItems

public boolean canViewOrgGroupItems()

canViewTeamItems

public boolean canViewTeamItems()

canManageCases

public boolean canManageCases()

setCanChooseItemToStart

public void setCanChooseItemToStart(boolean canChooseItemToStart)

setCanStartConcurrent

public void setCanStartConcurrent(boolean canStartConcurrent)

setCanReorder

public void setCanReorder(boolean canReorder)

setCanViewTeamItems

public void setCanViewTeamItems(boolean canViewTeamItems)

setCanViewOrgGroupItems

public void setCanViewOrgGroupItems(boolean canViewOrgGroupItems)

setCanChainExecution

public void setCanChainExecution(boolean canChainExecution)

setCanManageCases

public void setCanManageCases(boolean canManageCases)

toXML

public String toXML()

fromXML

public void fromXML(String xml)

reconstitute

public void reconstitute(org.jdom.Element e)

getPrivilegesAsBits

public String getPrivilegesAsBits()

setPrivilegesFromBits

public void setPrivilegesFromBits(String bits)


Copyright © 2004-2012 The YAWL Foundation.