|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sciplore.resources.Resource
org.sciplore.resources.Contact
@Entity public class Contact
Resource class for contacts.
Resource| Field Summary | |
|---|---|
static short |
CONTACT_TYPE_BUSINESS
Bitmask for business contact type. |
static short |
CONTACT_TYPE_BUSINESS_EMAIL
Bitmask for business email contact type. |
static short |
CONTACT_TYPE_BUSINESS_HOMEPAGE
Bitmask for business homepage type. |
static short |
CONTACT_TYPE_EMAIL
Bitmask for email contact type. |
static short |
CONTACT_TYPE_HOMEPAGE
Bitmask for homepage contact type. |
static short |
CONTACT_TYPE_PRIVATE
Bitmask for private contact type. |
static short |
CONTACT_TYPE_PRIVATE_EMAIL
Bitmask for private email contact type. |
static short |
CONTACT_TYPE_PRIVATE_HOMEPAGE
Bitmask for private homepage contact type. |
| Constructor Summary | |
|---|---|
Contact()
Contruct an empty Contact object. |
|
Contact(Person person,
String uri,
Short type)
Construct a Contact object from Person, URI and type. |
|
Contact(String uri,
Short type)
Construct a Contact object from URI and Type. |
|
| Method Summary | |
|---|---|
static Contact |
getContact(Contact c)
Returns a Contact object from the database from a Contact object. |
static Contact |
getContact(Integer id)
Returns a Contact object from the database for an identifier. |
static Contact |
getContact(Person p,
String uri)
Returns a Contact object fromt he database for a Person and an uri. |
String |
getDescription()
Returns the description. |
Integer |
getId()
Returns the identifier. |
Short |
getMedia()
Deprecated. use type with bitmasks instead |
Person |
getPerson()
Returns the Person. |
Short |
getType()
Returns the type. |
String |
getUri()
Returns the URI. |
Short |
getValid()
Returns information about the validity of the record. |
void |
setDescription(String description)
Sets the description. |
void |
setId(Integer id)
Sets the identifier. |
void |
setMedia(Short media)
Deprecated. use type with bitmasks instead |
void |
setPerson(Person person)
Sets the Person. |
void |
setType(Short type)
Sets the type. |
void |
setUri(String uri)
Sets the URI. |
void |
setValid(Short valid)
Sets information about the validity of the record. |
static Contact |
sync(Contact co)
Synchronizes an Contact object with a record from the database. |
| Methods inherited from class org.sciplore.resources.Resource |
|---|
save |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short CONTACT_TYPE_PRIVATE
public static final short CONTACT_TYPE_BUSINESS
public static final short CONTACT_TYPE_EMAIL
public static final short CONTACT_TYPE_HOMEPAGE
public static final short CONTACT_TYPE_PRIVATE_EMAIL
CONTACT_TYPE_PRIVATE,
CONTACT_TYPE_EMAIL,
Constant Field Valuespublic static final short CONTACT_TYPE_PRIVATE_HOMEPAGE
CONTACT_TYPE_PRIVATE,
CONTACT_TYPE_HOMEPAGE,
Constant Field Valuespublic static final short CONTACT_TYPE_BUSINESS_EMAIL
CONTACT_TYPE_BUSINESS,
CONTACT_TYPE_EMAIL,
Constant Field Valuespublic static final short CONTACT_TYPE_BUSINESS_HOMEPAGE
CONTACT_TYPE_BUSINESS,
CONTACT_TYPE_HOMEPAGE,
Constant Field Values| Constructor Detail |
|---|
public Contact()
public Contact(Person person,
String uri,
Short type)
Person, URI and type.
person - the Personuri - the URItype - the typePerson
public Contact(String uri,
Short type)
uri - the URItype - the type| Method Detail |
|---|
public static Contact getContact(Contact c)
c - the contact object
public static Contact getContact(Integer id)
id - the identifier
public static Contact getContact(Person p,
String uri)
Person and an uri.
p - the Personuri - the URI
Personpublic static Contact sync(Contact co)
co - the Contact
public String getDescription()
public Integer getId()
@Deprecated public Short getMedia()
public Person getPerson()
Person.
PersonPersonpublic Short getType()
public String getUri()
public Short getValid()
public void setDescription(String description)
description - the descriptionpublic void setId(Integer id)
id - the identifier@Deprecated public void setMedia(Short media)
media - the mediapublic void setPerson(Person person)
Person.
person - the Personpublic void setType(Short type)
type - the typepublic void setUri(String uri)
uri - the uripublic void setValid(Short valid)
valid - information about the validity of the record.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||