Class PublicationRight
java.lang.Object
com.priint.pubserverapi.publication.PublicationRight
Represents the publication rights for a specific publication, team, or person.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the Id of the person.Gets the Id of the publication.Gets the Id of the team.booleanChecks if the delete right is granted.booleanChecks if the read right is granted.booleanChecks if the workflow right is granted.booleanChecks if the write right is granted.voidsetDeleteRight(boolean deleteRight) Sets the delete right.voidsetPersonId(String personId) Sets the Id of the person.voidsetPublicationId(String publicationId) Sets the Id of the publication.voidsetReadRight(boolean readRight) Sets the read right.voidSets the Id of the team.voidsetWorkflowRight(boolean workflowRight) Sets the workflow right.voidsetWriteRight(boolean writeRight) Sets the write right.
-
Constructor Details
-
PublicationRight
public PublicationRight()
-
-
Method Details
-
getPublicationId
Gets the Id of the publication.- Returns:
- the publication Id
-
setPublicationId
Sets the Id of the publication.- Parameters:
publicationId- the publication Id to set
-
getTeamId
Gets the Id of the team.- Returns:
- the team Id
-
setTeamId
Sets the Id of the team.- Parameters:
teamId- the team Id to set
-
getPersonId
Gets the Id of the person.- Returns:
- the person Id
-
setPersonId
Sets the Id of the person.- Parameters:
personId- the person Id to set
-
isReadRight
public boolean isReadRight()Checks if the read right is granted.- Returns:
- true if the read right is granted, false otherwise
-
setReadRight
public void setReadRight(boolean readRight) Sets the read right.- Parameters:
readRight- the read right to set
-
isWriteRight
public boolean isWriteRight()Checks if the write right is granted.- Returns:
- true if the write right is granted, false otherwise
-
setWriteRight
public void setWriteRight(boolean writeRight) Sets the write right.- Parameters:
writeRight- the write right to set
-
isDeleteRight
public boolean isDeleteRight()Checks if the delete right is granted.- Returns:
- true if the delete right is granted, false otherwise
-
setDeleteRight
public void setDeleteRight(boolean deleteRight) Sets the delete right.- Parameters:
deleteRight- the delete right to set
-
isWorkflowRight
public boolean isWorkflowRight()Checks if the workflow right is granted.- Returns:
- true if the workflow right is granted, false otherwise
-
setWorkflowRight
public void setWorkflowRight(boolean workflowRight) Sets the workflow right.- Parameters:
workflowRight- the workflow right to set
-