edu.nrao.sss.model.user
Class Institution
java.lang.Object
edu.nrao.sss.model.user.ObjectId
edu.nrao.sss.model.user.Institution
- All Implemented Interfaces:
- XMLable, Serializable
public class Institution
- extends ObjectId
- implements XMLable
- See Also:
- Serialized Form
Institution
public Institution()
addToAffiliatedUsers
public void addToAffiliatedUsers(User user)
addToTypes
public void addToTypes(InstitutionType institutionType)
equals
public boolean equals(Object obj)
- Specified by:
equals
in class ObjectId
getAffiliatedUsers
public Set<User> getAffiliatedUsers()
getContactPerson1
public String getContactPerson1()
getContactPerson2
public String getContactPerson2()
getDepartmentName
public String getDepartmentName()
getEntryStatus
public EntryStatus getEntryStatus()
getFormalName
public String getFormalName()
getMailingName
public String getMailingName()
getNameAndAcronym
public String getNameAndAcronym()
getParentId
public int getParentId()
getShortName
public String getShortName()
getTypes
public Set<InstitutionType> getTypes()
isDomestic
public boolean isDomestic()
setAffiliatedUsers
public void setAffiliatedUsers(Set<User> affiliatedUsers)
setContactPerson1
public void setContactPerson1(String contactPerson1)
setContactPerson2
public void setContactPerson2(String contactPerson2)
setDepartmentName
public void setDepartmentName(String departmentName)
setEntryStatus
public void setEntryStatus(EntryStatus entryStatus)
setFormalName
public void setFormalName(String formalName)
setMailingName
public void setMailingName(String mailingName)
setParentId
public void setParentId(int parentId)
setShortName
public void setShortName(String shortName)
setTypes
public void setTypes(Set<InstitutionType> types)
toShortXML
public String toShortXML(boolean isDefault)
toXML
public final 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.
toXML
public String toXML(boolean showAll,
boolean forUser,
boolean isDefault)
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.