org.zeroexchange.model.collaboration
Class Contract

java.lang.Object
  extended by org.zeroexchange.model.Persistent
      extended by org.zeroexchange.model.IntegerPKPersistent
          extended by org.zeroexchange.model.collaboration.Contract
All Implemented Interfaces:
Serializable, Identifiable<Integer>, SharedViewable

@Entity
public class Contract
extends IntegerPKPersistent
implements SharedViewable

The contract entity.

Author:
black
See Also:
Serialized Form

Field Summary
static String FIELD_CREATION_DATE
           
static String FIELD_EFFECTIVE_USERS
           
static String FIELD_INVITATIONS
           
static String FIELD_MODIFICATION_DATE
           
static String FIELD_OWNER
           
static String FIELD_RESOURCES
           
static String FIELD_STATUS
           
static String FIELD_TITLE
           
static String FIELD_VIEW_POLICY
           
static String FIELD_VIWERS_COUNT
           
 
Fields inherited from interface org.zeroexchange.model.SharedViewable
FIELD_VIEWERS
 
Fields inherited from interface org.zeroexchange.model.Identifiable
FIELD_ID
 
Constructor Summary
Contract()
           
 
Method Summary
 Set<User> getAcceptors()
           
 Date getCreationDate()
           
 Set<User> getEffectiveUsers()
           
 Set<Invitation> getInvitations()
           
 Date getModificationDate()
           
 User getOwner()
           
 Set<Resource> getResources()
           
 ContractStatus getStatus()
           
 String getTitle()
          Gets the titles.
 Set<User> getViewers()
          Returns viewers collection.
 Integer getViewersCount()
           
 ViewPolicy getViewPolicy()
           
 void setAcceptors(Set<User> acceptors)
           
 void setCreationDate(Date creationDate)
           
 void setEffectiveUsers(Set<User> effectiveUsers)
           
 void setInvitations(Set<Invitation> invitations)
           
 void setModificationDate(Date modificationDate)
           
 void setOwner(User owner)
           
 void setResources(Set<Resource> resources)
           
 void setStatus(ContractStatus contractStatus)
           
 void setTitle(String title)
           
 void setViewers(Set<User> viewers)
           
 void setViewersCount(Integer count)
           
 void setViewPolicy(ViewPolicy viewPolicy)
           
 
Methods inherited from class org.zeroexchange.model.IntegerPKPersistent
equals, getId, hashCode, setId
 
Methods inherited from class org.zeroexchange.model.Persistent
getTransientValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_RESOURCES

public static final String FIELD_RESOURCES
See Also:
Constant Field Values

FIELD_OWNER

public static final String FIELD_OWNER
See Also:
Constant Field Values

FIELD_STATUS

public static final String FIELD_STATUS
See Also:
Constant Field Values

FIELD_CREATION_DATE

public static final String FIELD_CREATION_DATE
See Also:
Constant Field Values

FIELD_MODIFICATION_DATE

public static final String FIELD_MODIFICATION_DATE
See Also:
Constant Field Values

FIELD_TITLE

public static final String FIELD_TITLE
See Also:
Constant Field Values

FIELD_VIWERS_COUNT

public static final String FIELD_VIWERS_COUNT
See Also:
Constant Field Values

FIELD_EFFECTIVE_USERS

public static final String FIELD_EFFECTIVE_USERS
See Also:
Constant Field Values

FIELD_INVITATIONS

public static final String FIELD_INVITATIONS
See Also:
Constant Field Values

FIELD_VIEW_POLICY

public static final String FIELD_VIEW_POLICY
See Also:
Constant Field Values
Constructor Detail

Contract

public Contract()
Method Detail

getViewPolicy

public ViewPolicy getViewPolicy()

setViewPolicy

public void setViewPolicy(ViewPolicy viewPolicy)

getInvitations

public Set<Invitation> getInvitations()

setInvitations

public void setInvitations(Set<Invitation> invitations)

getOwner

public User getOwner()

setOwner

public void setOwner(User owner)

getAcceptors

public Set<User> getAcceptors()

setAcceptors

public void setAcceptors(Set<User> acceptors)

getViewersCount

public Integer getViewersCount()

setViewersCount

public void setViewersCount(Integer count)

getEffectiveUsers

public Set<User> getEffectiveUsers()

setEffectiveUsers

public void setEffectiveUsers(Set<User> effectiveUsers)

getViewers

public Set<User> getViewers()
Description copied from interface: SharedViewable
Returns viewers collection. NOTE: this method should NOT return null!

Specified by:
getViewers in interface SharedViewable

setViewers

public void setViewers(Set<User> viewers)

getResources

public Set<Resource> getResources()

setResources

public void setResources(Set<Resource> resources)

getStatus

public ContractStatus getStatus()
Returns:
the status

setStatus

public void setStatus(ContractStatus contractStatus)
Parameters:
status - the status to set

getTitle

public String getTitle()
Gets the titles.


setTitle

public void setTitle(String title)

getCreationDate

public Date getCreationDate()

setCreationDate

public void setCreationDate(Date creationDate)

getModificationDate

public Date getModificationDate()

setModificationDate

public void setModificationDate(Date modificationDate)


Copyright © 2013. All Rights Reserved.