com.redhat.rhn.domain.org.usergroup
Class UserGroupImpl

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.org.usergroup.UserGroupImpl
All Implemented Interfaces:
UserGroup

public class UserGroupImpl
extends BaseDomainHelper
implements UserGroup

Class UserGroup that reflects the DB representation of RHNUSERGROUP DB table: RHNUSERGROUP


Constructor Summary
UserGroupImpl()
           
 
Method Summary
 java.lang.Long getCurrentMembers()
          Getter for currentMembers Getter for currentMembers
 java.lang.String getDescription()
          Getter for description Getter for description
 java.lang.Long getId()
          Getter for id Getter for id
 java.lang.String getName()
          Getter for name Getter for name
 java.lang.Long getOrgId()
          Getter for orgId Getter for orgId
 Role getRole()
          Getter for groupType Getter for role
 boolean isAssociatedRole(Role rin)
          Determine if the given Role is associated with this UserGroup
 void setCurrentMembers(java.lang.Long currentMembersIn)
          Setter for currentMembers Setter for currentMembers
 void setDescription(java.lang.String descriptionIn)
          Setter for description Setter for description
 void setId(java.lang.Long idIn)
          Setter for id Setter for id
 void setName(java.lang.String nameIn)
          Setter for name Setter for name
 void setOrgId(java.lang.Long orgIdIn)
          Setter for orgId Setter for orgId
 void setRole(Role roleIn)
          Setter for groupType Setter for role
 java.lang.String toString()
          
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.redhat.rhn.domain.org.usergroup.UserGroup
getCreated, getModified, setCreated, setModified
 

Constructor Detail

UserGroupImpl

public UserGroupImpl()
Method Detail

getId

public java.lang.Long getId()
Getter for id Getter for id

Specified by:
getId in interface UserGroup
Returns:
id

setId

public void setId(java.lang.Long idIn)
Setter for id Setter for id

Specified by:
setId in interface UserGroup
Parameters:
idIn - New value for id

getName

public java.lang.String getName()
Getter for name Getter for name

Specified by:
getName in interface UserGroup
Returns:
name

setName

public void setName(java.lang.String nameIn)
Setter for name Setter for name

Specified by:
setName in interface UserGroup
Parameters:
nameIn - New value for name

getDescription

public java.lang.String getDescription()
Getter for description Getter for description

Specified by:
getDescription in interface UserGroup
Returns:
description

setDescription

public void setDescription(java.lang.String descriptionIn)
Setter for description Setter for description

Specified by:
setDescription in interface UserGroup
Parameters:
descriptionIn - New value for description

getCurrentMembers

public java.lang.Long getCurrentMembers()
Getter for currentMembers Getter for currentMembers

Specified by:
getCurrentMembers in interface UserGroup
Returns:
currentMembers

setCurrentMembers

public void setCurrentMembers(java.lang.Long currentMembersIn)
Setter for currentMembers Setter for currentMembers

Specified by:
setCurrentMembers in interface UserGroup
Parameters:
currentMembersIn - New value for currentMembers

getRole

public Role getRole()
Getter for groupType Getter for role

Specified by:
getRole in interface UserGroup
Returns:
role

setRole

public void setRole(Role roleIn)
Setter for groupType Setter for role

Specified by:
setRole in interface UserGroup
Parameters:
roleIn - New value for role

getOrgId

public java.lang.Long getOrgId()
Getter for orgId Getter for orgId

Specified by:
getOrgId in interface UserGroup
Returns:
orgId

setOrgId

public void setOrgId(java.lang.Long orgIdIn)
Setter for orgId Setter for orgId

Specified by:
setOrgId in interface UserGroup
Parameters:
orgIdIn - New value for orgId

isAssociatedRole

public boolean isAssociatedRole(Role rin)
Determine if the given Role is associated with this UserGroup

Specified by:
isAssociatedRole in interface UserGroup
Parameters:
rin - Role to test
Returns:
true if rin is an associated role

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object