com.atlassian.jira.rest.client.api.domain
Class ProjectRole
java.lang.Object
com.atlassian.jira.rest.client.api.domain.BasicProjectRole
com.atlassian.jira.rest.client.api.domain.ProjectRole
- All Implemented Interfaces:
- AddressableEntity, IdentifiableEntity<java.lang.Long>, NamedEntity
public class ProjectRole
- extends BasicProjectRole
- implements IdentifiableEntity<java.lang.Long>
A way to group users (@see RoleActors) with projects. An example would be a global role called "testers". If you
have a project X and a project Y, you would then be able to configure different RoleActors in the "testers" role
for project X than for project Y. You can use ProjectRole objects as the target of Notification and Permission
schemes.
- See Also:
com.atlassian.jira.security.roles.ProjectRole
Constructor Summary |
ProjectRole(long id,
java.net.URI self,
java.lang.String name,
java.lang.String description,
java.util.Collection<RoleActor> actors)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ProjectRole
public ProjectRole(long id,
java.net.URI self,
java.lang.String name,
java.lang.String description,
java.util.Collection<RoleActor> actors)
getDescription
public java.lang.String getDescription()
- Returns:
- description of this project role.
getActors
public java.lang.Iterable<RoleActor> getActors()
- Returns:
- actors associated with this role.
getId
public java.lang.Long getId()
- Specified by:
getId
in interface IdentifiableEntity<java.lang.Long>
- Returns:
- the unique id for this project role.
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class BasicProjectRole
hashCode
public int hashCode()
- Overrides:
hashCode
in class BasicProjectRole
getToStringHelper
protected com.google.common.base.Objects.ToStringHelper getToStringHelper()
- Overrides:
getToStringHelper
in class BasicProjectRole
Copyright © 2013 Atlassian. All Rights Reserved.