com.zphinx.spine.members
Class Group

java.lang.Object
  extended by com.zphinx.spine.vo.dto.SpineBean
      extended by com.zphinx.spine.members.Identity
          extended by com.zphinx.spine.members.Identifier
              extended by com.zphinx.spine.members.Member
                  extended by com.zphinx.spine.members.Group
All Implemented Interfaces:
MemberActions, DataTransferObject, Serializable
Direct Known Subclasses:
Application

public class Group
extends Member
implements MemberActions

The Object which represents a named group within the spine framework.

Version:
$Revision: 1.17 $ $Date: 2008/06/15 01:47:09 $

created Sun Oct 5 14:29:10 BST 2003
copyright © Zphinx Software Solutions

Author:
David Ladapo (davidl@zphinx.com)
See Also:
Member, MemberActions, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.zphinx.spine.members.Member
Member.MemberPermissionFactory
 
Nested classes/interfaces inherited from class com.zphinx.spine.vo.dto.SpineBean
SpineBean.PermissionFactory
 
Field Summary
 
Fields inherited from class com.zphinx.spine.members.Identity
ADMINISTRATOR, APPLICATION, USER
 
Constructor Summary
Group()
          Constructor for group object
 
Method Summary
 void add(UserListBean userListBean)
          Adds a user to the userList
 StringAttributeBean getAdministrator()
          Get the currently active Administrator
 SpinePermission getPermission()
          Implementation of getPermission in Member,returns the SpinePermission Object associated with this Object.
 ArrayList getUserList()
          Get the Users this group contains.This are persisted as a collection of UserListBeans
 void setAdministrator(StringAttributeBean administrator)
          Add an administrator to this group.This administrator is also the active Administrator for this group
 void setGroupName(StringAttributeBean groupName)
          Set the group name this member belongs to.
 void setUserList(ArrayList userList)
          Sets the list of users in this group
 
Methods inherited from class com.zphinx.spine.members.Member
getActivity, getAddress, getAdministrators, getBirthDate, getBirthDateString, getCity, getCompanyName, getCountry, getFax, getGender, getGroupId, getGroupName, getGroupNames, getLastIp, getLastLogin, getMemberName, getPhone, getPostCode, getState, getUrl, setActivity, setAddress, setAdministrators, setBirthDate, setBirthDateString, setCity, setCompanyName, setCountry, setCountry, setFax, setGender, setGroupId, setGroupNames, setLastIp, setLastLogin, setPhone, setPostCode, setState, setState, setUrl
 
Methods inherited from class com.zphinx.spine.members.Identifier
getAccountSecrets, setAccountSecrets
 
Methods inherited from class com.zphinx.spine.members.Identity
getEmailAddress, getFirstName, getLastName, getUserName, setEmailAddress, setFirstName, setLastName, setUserName
 
Methods inherited from class com.zphinx.spine.vo.dto.SpineBean
getCreationDate, getDescription, getId, getLocale, getModifiedDate, getName, getSessionId, setCreationDate, setDescription, setId, setLocale, setModifiedDate, setName, setPermission, setSessionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.zphinx.spine.members.MemberActions
getActivity, setActivity
 

Constructor Detail

Group

public Group()
Constructor for group object

Method Detail

getAdministrator

public StringAttributeBean getAdministrator()
Get the currently active Administrator

Returns:
Administrator An Administrator object expected to be active in this group

setAdministrator

public void setAdministrator(StringAttributeBean administrator)
Add an administrator to this group.This administrator is also the active Administrator for this group

Parameters:
administrator - An Administrator object to add to this group.

getPermission

public SpinePermission getPermission()
Implementation of getPermission in Member,returns the SpinePermission Object associated with this Object. Uses MemberPermissionFactory.getMemberPermission to create the appropriate SpinePermission

Specified by:
getPermission in class Member
Returns:
SpinePermission The SpinePermission object associated with this group
See Also:
SpinePermission

getUserList

public ArrayList getUserList()
Get the Users this group contains.This are persisted as a collection of UserListBeans

Returns:
ArrayList A collection of UserListBeans

setUserList

public void setUserList(ArrayList userList)
Sets the list of users in this group

Parameters:
userList - an array of UserListBeans representing the names of individual groups

add

public void add(UserListBean userListBean)
Adds a user to the userList

Parameters:
userListBean - The UserListBean to add

setGroupName

public void setGroupName(StringAttributeBean groupName)
Description copied from class: Member
Set the group name this member belongs to.

Overrides:
setGroupName in class Member
Parameters:
groupName - The new groupName