org.zeroexchange.model.collaboration
Class Contract
java.lang.Object
org.zeroexchange.model.Persistent
org.zeroexchange.model.IntegerPKPersistent
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_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
Contract
public Contract()
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.