edu.nrao.sss.model.user
Class User

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

Deprecated.

@Deprecated
public class User
extends ObjectId
implements XMLable

Outdated; use new NRAO User package.

See Also:
Serialized Form

Field Summary
static int AUTH_TOKEN_SIZE
          Deprecated.  
static String XML_VERSION
          Deprecated.  
 
Constructor Summary
User()
          Deprecated.  
 
Method Summary
 void addToAffiliations(Institution institution)
          Deprecated.  
 void addToContactCollection(Contact contact)
           
 void addToGroups(UserGroup userGroup)
          Deprecated.  
 void addToNotes(UserNote userNote)
          Deprecated.  
 void addToTypes(UserType userType)
          Deprecated.  
protected  String contactInfoXML(boolean showAll)
           
 void copy(edu.nrao.sss.model.user.ContactCollection contactCollection)
           
 void copy(edu.nrao.sss.model.user.UpdateDetails updateDetails)
           
 void copy(User user)
          Deprecated.  
 boolean equals(Object obj)
          Deprecated.  
 String getAccountName()
          Deprecated.  
 List<Contact> getAddresses()
           
 Set<Institution> getAffiliations()
          Deprecated.  
 short getAipsNumber()
          Deprecated.  
 String getAuthenticationToken()
          Deprecated.  
 Collection<Contact> getContactCollection()
           
 UserContactLevel getContactLevel()
          Deprecated.  
 List<Contact> getContactsOfType(Contact.ContactType contactType)
           
 AddressCountry getCountry()
           
 Address getDefaultAddress()
           
 Email getDefaultEmail()
           
 Fax getDefaultFax()
           
 Institution getDefaultInstitution()
          Deprecated.  
 Phone getDefaultPhone()
           
 URL getDefaultURL()
           
 List<Contact> getEmails()
           
 String getEncodedId()
           
 String getEncryptedPassword()
          Deprecated.  
 EntryStatus getEntryStatus()
          Deprecated.  
 List<Contact> getFaxes()
           
 String getFirstName()
          Deprecated.  
 String getFormalName()
          Deprecated.  
 String getFormalNameLastNameFirst()
          Deprecated.  
 Character getGender()
          Deprecated.  
 short getGraduationYear()
          Deprecated.  
 Set<UserGroup> getGroups()
          Deprecated.  
 Date getLastLogin()
          Deprecated.  
 String getLastName()
          Deprecated.  
 Date getLastObservation()
          Deprecated.  
 String getMiddleName()
          Deprecated.  
 Collection<UserNote> getNotes()
          Deprecated.  
 int getOutOfDateReporterId()
          Deprecated.  
 List<Contact> getPhones()
           
 String getPreferredName()
          Deprecated.  
 UserPrefix getPrefix()
          Deprecated.  
 UserSuffix getSuffix()
          Deprecated.  
 TimeZone getTimezone()
          Deprecated.  
 Set<UserType> getTypes()
          Deprecated.  
 AddressCountry getUnknownAffiliationCountry()
          Deprecated.  
 String getUnknownAffiliationName()
          Deprecated.  
 int getUpdatedBy()
           
 Date getUpdatedOn()
           
 List<Contact> getURLs()
           
 String getUserName()
          Deprecated.  
 String getUserNameLastNameFirst()
          Deprecated.  
 boolean isAffiliatedWith(Institution inst)
          Deprecated.  
 int isDomestic()
          Deprecated.  
 boolean isRememberLogin()
          Deprecated.  
 boolean isType(UserType userType)
          Deprecated.  
 boolean isUserInGroup(UserGroup userGroup)
          Deprecated.  
 boolean passwordEquals(String password)
          Deprecated.  
 void removeFromTypes(UserType userType)
          Deprecated.  
 void setAccountName(String accountName)
          Deprecated.  
 void setAffiliations(Set<Institution> affiliations)
          Deprecated.  
 void setAipsNumber(short aipsNumber)
          Deprecated.  
 void setAuthenticationToken(String authenticationToken)
          Deprecated.  
 void setContactCollection(Collection<Contact> contactCollection)
           
 void setContactLevel(UserContactLevel contactLevel)
          Deprecated.  
 void setDefaultInstitution(Institution defaultInstitution)
          Deprecated.  
 void setEncryptedPassword(String encryptedPassword)
          Deprecated.  
 void setEntryStatus(EntryStatus entryStatus)
          Deprecated.  
 void setFirstName(String firstName)
          Deprecated.  
 void setGender(Character gender)
          Deprecated.  
 void setGraduationYear(short graduationYear)
          Deprecated.  
 void setGroups(Set<UserGroup> groups)
          Deprecated.  
 void setLastLogin(Date lastLogin)
          Deprecated.  
 void setLastName(String lastName)
          Deprecated.  
 void setLastObservation(Date lastObservation)
          Deprecated.  
 void setMiddleName(String middleName)
          Deprecated.  
 void setNewPassword(String plainPassword)
          Deprecated.  
 String setNewRandomPassword()
          Deprecated.  
 void setNotes(Collection<UserNote> notes)
          Deprecated.  
 void setOutOfDateReporterId(int outOfDateReporterId)
          Deprecated.  
 void setPreferredName(String preferredName)
          Deprecated.  
 void setPrefix(UserPrefix prefix)
          Deprecated.  
 void setRememberLogin(boolean rememberLogin)
          Deprecated.  
 void setSuffix(UserSuffix suffix)
          Deprecated.  
 void setTimezone(TimeZone timezone)
          Deprecated.  
 void setTypes(Set<UserType> types)
          Deprecated.  
 void setUnknownAffiliationCountry(AddressCountry unknownAffiliationCountry)
          Deprecated.  
 void setUnknownAffiliationName(String unknownAffiliationName)
          Deprecated.  
 void setUpdatedBy(int updatedBy)
           
 void setUpdatedOn(Date updatedOn)
           
 String toXML()
          Deprecated. Provide an XML description of the object.
 String toXML(boolean showAll)
          Deprecated.  
 
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

AUTH_TOKEN_SIZE

public static final int AUTH_TOKEN_SIZE
Deprecated. 
See Also:
Constant Field Values

XML_VERSION

public static final String XML_VERSION
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

User

public User()
     throws InfrastructureException
Deprecated. 
Throws:
InfrastructureException
Method Detail

addToAffiliations

public void addToAffiliations(Institution institution)
Deprecated. 

addToGroups

public void addToGroups(UserGroup userGroup)
Deprecated. 

addToNotes

public void addToNotes(UserNote userNote)
Deprecated. 

addToTypes

public void addToTypes(UserType userType)
Deprecated. 

copy

public void copy(User user)
          throws InfrastructureException
Deprecated. 
Throws:
InfrastructureException

equals

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

getAccountName

public String getAccountName()
Deprecated. 

getAffiliations

public Set<Institution> getAffiliations()
Deprecated. 

getAipsNumber

public short getAipsNumber()
Deprecated. 

getAuthenticationToken

public String getAuthenticationToken()
Deprecated. 

getContactLevel

public UserContactLevel getContactLevel()
Deprecated. 

getDefaultInstitution

public Institution getDefaultInstitution()
Deprecated. 

getEncryptedPassword

public String getEncryptedPassword()
Deprecated. 

getEntryStatus

public EntryStatus getEntryStatus()
Deprecated. 

getFirstName

public String getFirstName()
Deprecated. 

getFormalName

public String getFormalName()
Deprecated. 

getFormalNameLastNameFirst

public String getFormalNameLastNameFirst()
Deprecated. 

getGender

public Character getGender()
Deprecated. 

getGraduationYear

public short getGraduationYear()
Deprecated. 

getGroups

public Set<UserGroup> getGroups()
Deprecated. 

getLastLogin

public Date getLastLogin()
Deprecated. 

getLastName

public String getLastName()
Deprecated. 

getLastObservation

public Date getLastObservation()
Deprecated. 

getMiddleName

public String getMiddleName()
Deprecated. 

getNotes

public Collection<UserNote> getNotes()
Deprecated. 

getOutOfDateReporterId

public int getOutOfDateReporterId()
Deprecated. 

getPreferredName

public String getPreferredName()
Deprecated. 

getPrefix

public UserPrefix getPrefix()
Deprecated. 

getSuffix

public UserSuffix getSuffix()
Deprecated. 

getTimezone

public TimeZone getTimezone()
Deprecated. 

getTypes

public Set<UserType> getTypes()
Deprecated. 

getUnknownAffiliationCountry

public AddressCountry getUnknownAffiliationCountry()
Deprecated. 

getUnknownAffiliationName

public String getUnknownAffiliationName()
Deprecated. 

getUserName

public String getUserName()
Deprecated. 

getUserNameLastNameFirst

public String getUserNameLastNameFirst()
Deprecated. 

isAffiliatedWith

public boolean isAffiliatedWith(Institution inst)
Deprecated. 

isDomestic

public int isDomestic()
Deprecated. 

isRememberLogin

public boolean isRememberLogin()
Deprecated. 

isType

public boolean isType(UserType userType)
Deprecated. 

isUserInGroup

public boolean isUserInGroup(UserGroup userGroup)
Deprecated. 

passwordEquals

public boolean passwordEquals(String password)
                       throws InfrastructureException
Deprecated. 
Throws:
InfrastructureException

removeFromTypes

public void removeFromTypes(UserType userType)
Deprecated. 

setAccountName

public void setAccountName(String accountName)
Deprecated. 

setAffiliations

public void setAffiliations(Set<Institution> affiliations)
Deprecated. 

setAipsNumber

public void setAipsNumber(short aipsNumber)
Deprecated. 

setAuthenticationToken

public void setAuthenticationToken(String authenticationToken)
Deprecated. 

setContactLevel

public void setContactLevel(UserContactLevel contactLevel)
Deprecated. 

setDefaultInstitution

public void setDefaultInstitution(Institution defaultInstitution)
Deprecated. 

setEncryptedPassword

public void setEncryptedPassword(String encryptedPassword)
Deprecated. 

setEntryStatus

public void setEntryStatus(EntryStatus entryStatus)
Deprecated. 

setFirstName

public void setFirstName(String firstName)
Deprecated. 

setGender

public void setGender(Character gender)
Deprecated. 

setGraduationYear

public void setGraduationYear(short graduationYear)
Deprecated. 

setGroups

public void setGroups(Set<UserGroup> groups)
Deprecated. 

setLastLogin

public void setLastLogin(Date lastLogin)
Deprecated. 

setLastName

public void setLastName(String lastName)
Deprecated. 

setLastObservation

public void setLastObservation(Date lastObservation)
Deprecated. 

setMiddleName

public void setMiddleName(String middleName)
Deprecated. 

setNewPassword

public void setNewPassword(String plainPassword)
                    throws InfrastructureException
Deprecated. 
Throws:
InfrastructureException

setNewRandomPassword

public String setNewRandomPassword()
                            throws InfrastructureException
Deprecated. 
Throws:
InfrastructureException

setNotes

public void setNotes(Collection<UserNote> notes)
Deprecated. 

setOutOfDateReporterId

public void setOutOfDateReporterId(int outOfDateReporterId)
Deprecated. 

setPreferredName

public void setPreferredName(String preferredName)
Deprecated. 

setPrefix

public void setPrefix(UserPrefix prefix)
Deprecated. 

setRememberLogin

public void setRememberLogin(boolean rememberLogin)
Deprecated. 

setSuffix

public void setSuffix(UserSuffix suffix)
Deprecated. 

setTimezone

public void setTimezone(TimeZone timezone)
Deprecated. 

setTypes

public void setTypes(Set<UserType> types)
Deprecated. 

setUnknownAffiliationCountry

public void setUnknownAffiliationCountry(AddressCountry unknownAffiliationCountry)
Deprecated. 

setUnknownAffiliationName

public void setUnknownAffiliationName(String unknownAffiliationName)
Deprecated. 

toXML

public String toXML()
Deprecated. 
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.

toXML

public String toXML(boolean showAll)
Deprecated. 

addToContactCollection

public void addToContactCollection(Contact contact)

copy

public void copy(edu.nrao.sss.model.user.ContactCollection contactCollection)

contactInfoXML

protected String contactInfoXML(boolean showAll)

getAddresses

public List<Contact> getAddresses()

getContactCollection

public Collection<Contact> getContactCollection()

getContactsOfType

public List<Contact> getContactsOfType(Contact.ContactType contactType)

getCountry

public AddressCountry getCountry()

getDefaultAddress

public Address getDefaultAddress()

getDefaultEmail

public Email getDefaultEmail()

getDefaultFax

public Fax getDefaultFax()

getDefaultPhone

public Phone getDefaultPhone()

getDefaultURL

public URL getDefaultURL()

getEmails

public List<Contact> getEmails()

getFaxes

public List<Contact> getFaxes()

getPhones

public List<Contact> getPhones()

getURLs

public List<Contact> getURLs()

setContactCollection

public void setContactCollection(Collection<Contact> contactCollection)

getEncodedId

public String getEncodedId()

getUpdatedBy

public int getUpdatedBy()

getUpdatedOn

public Date getUpdatedOn()

copy

public void copy(edu.nrao.sss.model.user.UpdateDetails updateDetails)

setUpdatedBy

public void setUpdatedBy(int updatedBy)
                  throws IllegalArgumentException
Throws:
IllegalArgumentException

setUpdatedOn

public void setUpdatedOn(Date updatedOn)
                  throws NullPointerException
Throws:
NullPointerException


Copyright © 2009. All Rights Reserved.