|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.domain.BaseDomainHelper
com.redhat.rhn.domain.user.legacy.LegacyRhnUserImpl
public class LegacyRhnUserImpl
Class UserImpl that reflects the DB representation of web_contact and ancillary tables. DB table: web_contact
| Constructor Summary | |
|---|---|
LegacyRhnUserImpl()
Create a new empty user |
|
| Method Summary | |
|---|---|
void |
addChange(StateChange change)
Add a change to the users stateChanges set |
void |
addRole(Role label)
Add a role to this User's Role Set. |
void |
addServer(Server server)
Give this user permission to manage a server. |
boolean |
authenticate(java.lang.String thePassword)
Authenticate the user |
boolean |
equals(java.lang.Object other)
|
protected Address |
getAddress()
|
java.lang.String |
getAddress1()
Getter for address1 |
java.lang.String |
getAddress2()
Getter for address2 |
protected java.util.Set |
getAddresses()
Get the addresses |
java.util.Set |
getAssociatedServerGroups()
Retrieves the set of server groups associated to this user. |
java.lang.String |
getCity()
Getter for city |
java.lang.String |
getCompany()
Gets the current value of company |
java.lang.String |
getCountry()
Getter for country |
java.util.Set |
getDefaultSystemGroupIds()
Gets the Set of SystemGroup IDs (Long) associated with this User. |
java.lang.String |
getEmail()
Gets the current value of email |
int |
getEmailNotify()
Gets the current value of emailNotify |
EnterpriseUser |
getEnterpriseUser()
Get the EnterpriseUser |
java.lang.String |
getFax()
Gets the current value of fax |
java.lang.String |
getFirstNames()
Gets the current value of firstNames |
java.util.Set |
getHiddenPanes()
Retrieves the set of Pane object instances This method retrieves the |
java.lang.Long |
getId()
Gets the current value of id |
java.lang.String |
getIsPoBox()
Getter for isPoBox |
java.util.Date |
getLastLoggedIn()
Gets the current value of lastLoggedIn |
java.lang.String |
getLastName()
Gets the current value of lastName |
java.lang.String |
getLogin()
Gets the current value of login |
java.lang.String |
getLoginUc()
Gets the current value of loginUc |
java.util.Set |
getNotificationMethods()
Get the notification methods set |
Org |
getOrg()
helper method to get the associated Org for the user |
int |
getPageSize()
Gets the current value of pageSize |
java.lang.String |
getPassword()
Gets the current value of password |
protected PersonalInfo |
getPersonalInfo()
Return the PersonalInfo object |
java.lang.String |
getPhone()
Gets the current value of phone |
java.lang.String |
getPreferredLocale()
Returns the user's preferred locale |
java.lang.String |
getPrefix()
Gets the current value of prefix |
java.util.Set |
getRoles()
Gets the roles assigned to this user. |
java.util.Set<Server> |
getServers()
Returns the set of Server's this user has permissions to manage. |
java.lang.String |
getShowSystemGroupList()
Gets the current value of showSystemGroupList |
java.lang.String |
getState()
Getter for state |
java.util.Set |
getStateChanges()
Returns the set of state changes for a user. |
RhnTimeZone |
getTimeZone()
Gets the current timezone |
java.lang.String |
getTitle()
Gets the current value of title |
boolean |
getUsePamAuthentication()
Gets the current value of usePamAuthentication |
protected java.util.Set |
getUsergroups()
get the set of usergroups |
UserInfo |
getUserInfo()
Get the UserInfo sub object |
java.lang.String |
getZip()
Getter for zip |
int |
hashCode()
|
boolean |
hasRole(Role label)
Check to see if this user has the passed in label in the Collection of Roles assigned to this user |
boolean |
isDisabled()
Convenience method to determine whether a user is disabled or not |
void |
removeRole(Role label)
Remove a role to this User's Role Set. |
void |
removeServer(Server server)
Remover permission for the user to manage this server. |
void |
resetWasOrgAdmin()
Reset the wasOrgAdmin value. |
protected void |
setAddress(Address addIn)
|
void |
setAddress1(java.lang.String address1In)
Setter for address1 |
void |
setAddress2(java.lang.String address2In)
Setter for address2 |
protected void |
setAddresses(java.util.Set s)
Set the addresses. |
protected void |
setAssociatedServerGroups(java.util.Set serverGroups)
Sets the associatedServerGroups.. |
void |
setCity(java.lang.String cityIn)
Setter for city |
void |
setCompany(java.lang.String companyIn)
Sets the value of company to new value |
void |
setCountry(java.lang.String countryIn)
Setter for country |
void |
setDefaultSystemGroupIds(java.util.Set dsg)
Updates the User's Default System groups. |
void |
setEmail(java.lang.String emailIn)
Sets the value of email to new value |
void |
setEmailNotify(int emailNotifyIn)
Sets the value of emailNotify to new value |
void |
setFax(java.lang.String faxIn)
Sets the value of fax to new value |
void |
setFirstNames(java.lang.String firstNamesIn)
Sets the value of firstNames to new value |
void |
setHiddenPanes(java.util.Set p)
Sets the set of PaneObjects instances. |
void |
setId(java.lang.Long idIn)
Sets the value of id to new value |
void |
setIsPoBox(java.lang.String isPoBoxIn)
Setter for isPoBox |
void |
setLastLoggedIn(java.util.Date lastLoggedInIn)
Sets the value of lastLoggedIn to new value |
void |
setLastName(java.lang.String lastNameIn)
Sets the value of lastName to new value |
void |
setLogin(java.lang.String loginIn)
Sets the value of login to new value |
void |
setLoginUc(java.lang.String loginUcIn)
Sets the value of loginUc to new value |
void |
setNotificationMethods(java.util.Set methodsIn)
Set the notification method set. |
void |
setOrg(Org orgIn)
Associates the user with an Org. |
void |
setPageSize(int pageSizeIn)
Sets the value of pageSize to new value |
void |
setPassword(java.lang.String passwordIn)
Sets the value of password to new value |
protected void |
setPersonalInfo(PersonalInfo persIn)
Set the PersonalInfo object |
void |
setPhone(java.lang.String phoneIn)
Sets the value of phone to new value |
void |
setPreferredLocale(java.lang.String locale)
Sets the user's preferred locale |
void |
setPrefix(java.lang.String prefixIn)
Sets the value of prefix to new value |
void |
setShowSystemGroupList(java.lang.String showSystemGroupListIn)
Sets the value of showSystemGroupList to new value |
void |
setState(java.lang.String stateIn)
Setter for state |
void |
setStateChanges(java.util.Set s)
|
void |
setTimeZone(RhnTimeZone timeZoneIn)
Sets the current timezone |
void |
setTitle(java.lang.String titleIn)
Sets the value of title to new value |
void |
setUsePamAuthentication(boolean usePamAuthenticationIn)
Sets the value of usePamAuthentication to new value |
protected void |
setUsergroups(java.util.Set ugIn)
Set the usergroup set |
protected void |
setUserInfo(UserInfo infoIn)
Set the UserInfo object |
void |
setZip(java.lang.String zipIn)
Setter for zip |
java.lang.String |
toString()
Output User to String for debugging |
java.lang.Boolean |
wasOrgAdmin()
Determine if this was org admin. |
| Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper |
|---|
getCreated, getModified, setCreated, setModified |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.redhat.rhn.domain.user.User |
|---|
getCreated, getModified, setCreated, setModified |
| Constructor Detail |
|---|
public LegacyRhnUserImpl()
| Method Detail |
|---|
public java.lang.Long getId()
getId in interface Userpublic void setId(java.lang.Long idIn)
setId in interface UseridIn - New value for idpublic java.lang.String getLogin()
getLogin in interface Userpublic void setLogin(java.lang.String loginIn)
setLogin in interface UserloginIn - New value for loginpublic java.lang.String getLoginUc()
getLoginUc in interface Userpublic void setLoginUc(java.lang.String loginUcIn)
setLoginUc in interface UserloginUcIn - New value for loginUcpublic java.lang.String getPassword()
getPassword in interface Userpublic void setPassword(java.lang.String passwordIn)
setPassword in interface UserpasswordIn - New value for passwordprotected void setUsergroups(java.util.Set ugIn)
ugIn - The new Set of UserGroups to setprotected java.util.Set getUsergroups()
public java.util.Set getRoles()
Collections.unmodifiableMap(java.util.Map extends K, ? extends V>)
in order to enforce the rule that roles are not changeable
during runtime.
If this requirement changes then we will need to remove this
restriction later.
getRoles in interface Userpublic boolean hasRole(Role label)
hasRole in interface Userlabel - the label used to lookup
public void addRole(Role label)
addRole in interface Userlabel - The label of the Role you want to add.public void removeRole(Role label)
removeRole in interface Userlabel - The label of the Role you want to remove.public java.lang.Boolean wasOrgAdmin()
public void resetWasOrgAdmin()
public boolean authenticate(java.lang.String thePassword)
authenticate in interface UserthePassword - password to check if matches against this User's
public void setOrg(Org orgIn)
setOrg in interface UserorgIn - Org to be associated to this user.public Org getOrg()
getOrg in interface Userpublic java.util.Set getDefaultSystemGroupIds()
getDefaultSystemGroupIds in interface Userpublic void setDefaultSystemGroupIds(java.util.Set dsg)
setDefaultSystemGroupIds in interface Userdsg - Set of Long System Group IDsprotected PersonalInfo getPersonalInfo()
protected void setPersonalInfo(PersonalInfo persIn)
persIn - the PersonalInfo objectprotected void setUserInfo(UserInfo infoIn)
infoIn - the UserInfo objectpublic UserInfo getUserInfo()
public boolean isDisabled()
isDisabled in interface Userpublic void addChange(StateChange change)
addChange in interface Userchange - The change to addpublic java.util.Set getStateChanges()
getStateChanges in interface Userpublic void setStateChanges(java.util.Set s)
s - The stateChanges to set.public int getPageSize()
getPageSize in interface Userpublic void setPageSize(int pageSizeIn)
setPageSize in interface UserpageSizeIn - New value for pageSizepublic boolean getUsePamAuthentication()
getUsePamAuthentication in interface Userpublic void setUsePamAuthentication(boolean usePamAuthenticationIn)
setUsePamAuthentication in interface UserusePamAuthenticationIn - New value for usePamAuthenticationpublic java.lang.String getShowSystemGroupList()
getShowSystemGroupList in interface Userpublic void setShowSystemGroupList(java.lang.String showSystemGroupListIn)
setShowSystemGroupList in interface UsershowSystemGroupListIn - New value for showSystemGroupListpublic java.util.Date getLastLoggedIn()
getLastLoggedIn in interface Userpublic void setLastLoggedIn(java.util.Date lastLoggedInIn)
setLastLoggedIn in interface UserlastLoggedInIn - New value for lastLoggedInpublic void setPreferredLocale(java.lang.String locale)
setPreferredLocale in interface Userlocale - overrides browser localepublic java.lang.String getPreferredLocale()
getPreferredLocale in interface Userpublic java.lang.String getPrefix()
getPrefix in interface Userpublic void setPrefix(java.lang.String prefixIn)
setPrefix in interface UserprefixIn - New value for prefixpublic java.lang.String getFirstNames()
getFirstNames in interface Userpublic void setFirstNames(java.lang.String firstNamesIn)
setFirstNames in interface UserfirstNamesIn - New value for firstNamespublic java.lang.String getLastName()
getLastName in interface Userpublic void setLastName(java.lang.String lastNameIn)
setLastName in interface UserlastNameIn - New value for lastNamepublic java.lang.String getCompany()
getCompany in interface Userpublic void setCompany(java.lang.String companyIn)
setCompany in interface UsercompanyIn - New value for companypublic java.lang.String getTitle()
getTitle in interface Userpublic void setTitle(java.lang.String titleIn)
setTitle in interface UsertitleIn - New value for titlepublic java.lang.String getPhone()
getPhone in interface Userpublic void setPhone(java.lang.String phoneIn)
setPhone in interface UserphoneIn - New value for phonepublic java.lang.String getFax()
getFax in interface Userpublic void setFax(java.lang.String faxIn)
setFax in interface UserfaxIn - New value for faxpublic java.lang.String getEmail()
getEmail in interface Userpublic void setEmail(java.lang.String emailIn)
setEmail in interface UseremailIn - New value for emailpublic RhnTimeZone getTimeZone()
getTimeZone in interface Userpublic void setTimeZone(RhnTimeZone timeZoneIn)
setTimeZone in interface UsertimeZoneIn - The timezone to be setpublic java.util.Set getNotificationMethods()
getNotificationMethods in interface Userpublic void setNotificationMethods(java.util.Set methodsIn)
setNotificationMethods in interface UsermethodsIn - notification methodspublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getAddress1()
getAddress1 in interface Userpublic void setAddress1(java.lang.String address1In)
setAddress1 in interface Useraddress1In - New value for address1public java.lang.String getAddress2()
getAddress2 in interface Userpublic void setAddress2(java.lang.String address2In)
setAddress2 in interface Useraddress2In - New value for address2public java.lang.String getCity()
getCity in interface Userpublic void setCity(java.lang.String cityIn)
setCity in interface UsercityIn - New value for citypublic java.lang.String getState()
getState in interface Userpublic void setState(java.lang.String stateIn)
setState in interface UserstateIn - New value for statepublic java.lang.String getZip()
getZip in interface Userpublic void setZip(java.lang.String zipIn)
setZip in interface UserzipIn - New value for zippublic java.lang.String getCountry()
getCountry in interface Userpublic void setCountry(java.lang.String countryIn)
setCountry in interface UsercountryIn - New value for countrypublic java.lang.String getIsPoBox()
getIsPoBox in interface Userpublic void setIsPoBox(java.lang.String isPoBoxIn)
setIsPoBox in interface UserisPoBoxIn - New value for isPoBoxpublic EnterpriseUser getEnterpriseUser()
getEnterpriseUser in interface Userpublic java.util.Set getHiddenPanes()
getHiddenPanes in interface Userpublic void setHiddenPanes(java.util.Set p)
setHiddenPanes in interface Userp - a set of pane objectsprotected void setAddress(Address addIn)
protected Address getAddress()
protected void setAddresses(java.util.Set s)
s - the setprotected java.util.Set getAddresses()
public void setEmailNotify(int emailNotifyIn)
setEmailNotify in interface UseremailNotifyIn - New value for emailNotifypublic int getEmailNotify()
getEmailNotify in interface Userpublic java.util.Set getAssociatedServerGroups()
getAssociatedServerGroups in interface Userprotected void setAssociatedServerGroups(java.util.Set serverGroups)
serverGroups - the servergroups to set.public java.util.Set<Server> getServers()
getServers in interface Userpublic void addServer(Server server)
addServer in interface Userserver - Server to add permission for.public void removeServer(Server server)
removeServer in interface Userserver - Server to remove permission for.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||