edu.nrao.sss.model.user
Class UserGroup

java.lang.Object
  extended by edu.nrao.sss.model.user.ObjectId
      extended by edu.nrao.sss.model.user.UserGroup
All Implemented Interfaces:
XMLable, Serializable

public class UserGroup
extends ObjectId
implements XMLable

See Also:
Serialized Form

Field Summary
static String OP_NAME
           
static short OP_TYPE
           
static String PDB_ADMIN
           
static String RH_NAME
           
static short RH_TYPE
           
static String RV_NAME
           
static short RV_TYPE
           
 
Constructor Summary
UserGroup()
           
UserGroup(UserGroup userGroup)
           
 
Method Summary
 void addToUsers(User user)
           
 boolean equals(Object obj)
           
 String getUserGroupDescription()
           
 String getUserGroupName()
           
 short getUserGroupType()
           
 Set<User> getUsers()
           
 void setUserGroupDescription(String userGroupDescription)
           
 void setUserGroupName(String userGroupName)
           
 void setUserGroupType(short userGroupType)
           
 void setUsers(Set<User> users)
           
 String toXML()
          Provide an XML description of the object.
 
Methods inherited from class edu.nrao.sss.model.user.ObjectId
getId, hashCode, isNew, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OP_NAME

public static final String OP_NAME
See Also:
Constant Field Values

OP_TYPE

public static final short OP_TYPE
See Also:
Constant Field Values

PDB_ADMIN

public static final String PDB_ADMIN
See Also:
Constant Field Values

RH_NAME

public static final String RH_NAME
See Also:
Constant Field Values

RH_TYPE

public static final short RH_TYPE
See Also:
Constant Field Values

RV_NAME

public static final String RV_NAME
See Also:
Constant Field Values

RV_TYPE

public static final short RV_TYPE
See Also:
Constant Field Values
Constructor Detail

UserGroup

public UserGroup()

UserGroup

public UserGroup(UserGroup userGroup)
Method Detail

addToUsers

public void addToUsers(User user)
                throws InfrastructureException
Throws:
InfrastructureException

equals

public boolean equals(Object obj)
Specified by:
equals in class ObjectId

getUserGroupDescription

public String getUserGroupDescription()

getUserGroupName

public String getUserGroupName()

getUserGroupType

public short getUserGroupType()

getUsers

public Set<User> getUsers()

setUserGroupDescription

public void setUserGroupDescription(String userGroupDescription)

setUserGroupName

public void setUserGroupName(String userGroupName)

setUserGroupType

public void setUserGroupType(short userGroupType)

setUsers

public void setUsers(Set<User> users)

toXML

public String toXML()
Description copied from interface: XMLable
Provide an XML description of the object.

Specified by:
toXML in interface XMLable
Returns:
a String representing the XML of the object.


Copyright © 2009. All Rights Reserved.