org.sciplore.resources
Class Institution

java.lang.Object
  extended by org.sciplore.resources.Resource
      extended by org.sciplore.resources.Institution

@Entity
public class Institution
extends Resource


Field Summary
static short INSTITUTION_TYPE_MISC
           
static short INSTITUTION_TYPE_PUBLISHER
           
static short INSTITUTION_TYPE_SCHOOL
           
static short INSTITUTION_TYPE_UNIVERSITY
           
 
Constructor Summary
Institution()
           
Institution(Integer id)
           
Institution(String name)
           
Institution(String name, Short type)
           
 
Method Summary
 String getAddress()
           
 Set<Institution> getChildren()
           
 String getCity()
           
 String getCountry()
           
 Set<Document> getDocuments()
           
 Integer getId()
           
static Institution getInstitution(Institution i)
           
static Institution getInstitution(String name)
           
 String getName()
           
 Institution getParent()
           
 String getPostalcode()
           
 String getState()
           
 Short getType()
           
 String getUrl()
           
 Short getValid()
           
 Institution setAddress(String address)
           
 void setChildren(Set<Institution> children)
           
 Institution setCity(String city)
           
 Institution setCountry(String country)
           
 void setDocuments(Set<Document> documents)
           
 Institution setId(Integer id)
           
 Institution setName(String name)
           
 Institution setParent(Institution parent)
           
 Institution setPostalcode(String postalcode)
           
 Institution setState(String state)
           
 Institution setType(Short type)
           
 Institution setUrl(String url)
           
 Institution setValid(Short valid)
           
static Institution sync(Institution i)
           
 String toString()
           
 
Methods inherited from class org.sciplore.resources.Resource
save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTITUTION_TYPE_UNIVERSITY

public static final short INSTITUTION_TYPE_UNIVERSITY
See Also:
Constant Field Values

INSTITUTION_TYPE_PUBLISHER

public static final short INSTITUTION_TYPE_PUBLISHER
See Also:
Constant Field Values

INSTITUTION_TYPE_SCHOOL

public static final short INSTITUTION_TYPE_SCHOOL
See Also:
Constant Field Values

INSTITUTION_TYPE_MISC

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

Institution

public Institution()

Institution

public Institution(Integer id)

Institution

public Institution(String name)

Institution

public Institution(String name,
                   Short type)
Method Detail

getInstitution

public static Institution getInstitution(Institution i)

getInstitution

public static Institution getInstitution(String name)

sync

public static Institution sync(Institution i)

getId

public Integer getId()
Returns:
the id

setId

public Institution setId(Integer id)
Parameters:
id - the id to set

getName

public String getName()
Returns:
the name

setName

public Institution setName(String name)
Parameters:
name - the name to set

getType

public Short getType()
Returns:
the type

setType

public Institution setType(Short type)
Parameters:
type - the type to set

getUrl

public String getUrl()
Returns:
the url

setUrl

public Institution setUrl(String url)
Parameters:
url - the url to set

getCountry

public String getCountry()
Returns:
the country

setCountry

public Institution setCountry(String country)
Parameters:
country - the country to set

getState

public String getState()
Returns:
the state

setState

public Institution setState(String state)
Parameters:
state - the state to set

getCity

public String getCity()
Returns:
the city

setCity

public Institution setCity(String city)
Parameters:
city - the city to set

getPostalcode

public String getPostalcode()
Returns:
the postalcode

setPostalcode

public Institution setPostalcode(String postalcode)
Parameters:
postalcode - the postalcode to set

getAddress

public String getAddress()
Returns:
the adress

setAddress

public Institution setAddress(String address)
Parameters:
adress - the adress to set

getValid

public Short getValid()
Returns:
the valid

setValid

public Institution setValid(Short valid)
Parameters:
valid - the valid to set

getParent

public Institution getParent()
Returns:
the parent

setParent

public Institution setParent(Institution parent)
Parameters:
parent - the parent to set

toString

public String toString()
Overrides:
toString in class Object

getChildren

public Set<Institution> getChildren()
Returns:
the children

setChildren

public void setChildren(Set<Institution> children)
Parameters:
children - the children to set

getDocuments

public Set<Document> getDocuments()
Returns:
the documents

setDocuments

public void setDocuments(Set<Document> documents)
Parameters:
documents - the documents to set