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<Long>, NamedEntity
public class ProjectRole
- extends BasicProjectRole
- implements IdentifiableEntity<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
ProjectRole
public ProjectRole(long id,
URI self,
String name,
String description,
Collection<RoleActor> actors)
getDescription
public String getDescription()
- Returns:
- description of this project role.
getActors
public Iterable<RoleActor> getActors()
- Returns:
- actors associated with this role.
getId
public Long getId()
- Specified by:
getId in interface IdentifiableEntity<Long>
- Returns:
- the unique id for this project role.
equals
public boolean equals(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.