org.yawlfoundation.yawl.resourcing.resource
Class OrgGroup

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.resource.AbstractResourceAttribute
      extended by org.yawlfoundation.yawl.resourcing.resource.OrgGroup
All Implemented Interfaces:
Comparable

public class OrgGroup
extends AbstractResourceAttribute
implements Comparable

Represents an organisational group to which a position (occupied by a participant) may belong. Note that one org group may belong to a larger org group (or alternately, an org group may contain a number of smaller org groups).

Author:
Michael Adams v0.1, 03/08/2007

Nested Class Summary
static class OrgGroup.GroupType
           
 
Field Summary
 
Fields inherited from class org.yawlfoundation.yawl.resourcing.resource.AbstractResourceAttribute
_description, _id, _notes, _persisting, _resources
 
Constructor Summary
OrgGroup()
           
OrgGroup(org.jdom.Element e)
           
OrgGroup(String groupName, OrgGroup.GroupType groupType, OrgGroup belongsTo, String description)
           
OrgGroup(String groupName, OrgGroup.GroupType groupType, OrgGroup belongsTo, String description, boolean persisting)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 String get_belongsToID()
           
 String get_groupType()
           
 OrgGroup getBelongsTo()
           
 String getGroupName()
           
 OrgGroup.GroupType getGroupType()
           
 OrgGroup.GroupType getGroupTypeFromString(String name)
           
 String getName()
           
 boolean hasResourceInHierarchy(AbstractResource resource)
           
 void reconstitute(org.jdom.Element e)
           
 void set_belongsToID(String belongsToID)
           
 void set_groupType(String name)
           
 void setBelongsTo(OrgGroup belongsTo)
           
 boolean setBelongsTo(String ownerID)
           
 void setGroupName(String groupName)
           
 void setGroupType(OrgGroup.GroupType groupType)
           
 void setGroupType(String groupTypeStr)
           
 String toXML()
           
 
Methods inherited from class org.yawlfoundation.yawl.resourcing.resource.AbstractResourceAttribute
addResource, fromXML, get_resources, getDescription, getID, getNotes, getOrgDataSet, getResources, hashCode, hasResource, isPersisting, removeResource, save, set_resources, setDescription, setID, setNotes, setPersisting, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrgGroup

public OrgGroup()

OrgGroup

public OrgGroup(String groupName,
                OrgGroup.GroupType groupType,
                OrgGroup belongsTo,
                String description)

OrgGroup

public OrgGroup(String groupName,
                OrgGroup.GroupType groupType,
                OrgGroup belongsTo,
                String description,
                boolean persisting)

OrgGroup

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

getGroupName

public String getGroupName()

setGroupName

public void setGroupName(String groupName)

getName

public String getName()
Specified by:
getName in class AbstractResourceAttribute

getGroupType

public OrgGroup.GroupType getGroupType()

getGroupTypeFromString

public OrgGroup.GroupType getGroupTypeFromString(String name)

setGroupType

public void setGroupType(OrgGroup.GroupType groupType)

setGroupType

public void setGroupType(String groupTypeStr)

getBelongsTo

public OrgGroup getBelongsTo()

setBelongsTo

public void setBelongsTo(OrgGroup belongsTo)

setBelongsTo

public boolean setBelongsTo(String ownerID)

hasResourceInHierarchy

public boolean hasResourceInHierarchy(AbstractResource resource)

get_groupType

public String get_groupType()

set_groupType

public void set_groupType(String name)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

toXML

public String toXML()

reconstitute

public void reconstitute(org.jdom.Element e)
Overrides:
reconstitute in class AbstractResourceAttribute

get_belongsToID

public String get_belongsToID()

set_belongsToID

public void set_belongsToID(String belongsToID)


Copyright © 2004-2012 The YAWL Foundation.