org.sciplore.resources
Class DocumentPerson

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

@Entity
public class DocumentPerson
extends Resource


Field Summary
static short DOCUMENTPERSON_TYPE_AUTHOR
           
static short DOCUMENTPERSON_TYPE_EDITOR
           
 
Constructor Summary
DocumentPerson()
           
DocumentPerson(Person p)
           
DocumentPerson(Person p, Short type)
           
DocumentPerson(Person p, Short type, Short rank)
           
 
Method Summary
 Document getDocument()
           
 Integer getId()
           
 Person getPerson()
           
 Short getRank()
           
 Short getType()
           
 Short getValid()
           
 void setDocument(Document document)
           
 void setId(Integer id)
           
 void setPerson(Person person)
           
 void setRank(Short rank)
           
 void setType(Short type)
           
 void setValid(Short valid)
           
static DocumentPerson sync(DocumentPerson p)
           
 
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

DOCUMENTPERSON_TYPE_AUTHOR

public static final short DOCUMENTPERSON_TYPE_AUTHOR
See Also:
Constant Field Values

DOCUMENTPERSON_TYPE_EDITOR

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

DocumentPerson

public DocumentPerson()

DocumentPerson

public DocumentPerson(Person p)

DocumentPerson

public DocumentPerson(Person p,
                      Short type)

DocumentPerson

public DocumentPerson(Person p,
                      Short type,
                      Short rank)
Method Detail

getId

public Integer getId()
Returns:
the id

setId

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

getDocument

public Document getDocument()
Returns:
the document

setDocument

public void setDocument(Document document)
Parameters:
document - the document to set

getRank

public Short getRank()
Returns:
the rank

setRank

public void setRank(Short rank)
Parameters:
rank - the rank to set

getType

public Short getType()
Returns:
the type

setType

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

getPerson

public Person getPerson()
Returns:
the person

setPerson

public void setPerson(Person person)
Parameters:
person - the person to set

getValid

public Short getValid()
Returns:
the valid

setValid

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

sync

public static DocumentPerson sync(DocumentPerson p)