com.atlassian.jira.security.roles
Class ProjectRoleActorsImpl

java.lang.Object
  extended by com.atlassian.jira.security.roles.DefaultRoleActorsImpl
      extended by com.atlassian.jira.security.roles.ProjectRoleActorsImpl
All Implemented Interfaces:
DefaultRoleActors, ProjectRoleActors

public class ProjectRoleActorsImpl
extends DefaultRoleActorsImpl
implements ProjectRoleActors

See Also:
ProjectRoleActors

Constructor Summary
ProjectRoleActorsImpl(Long projectId, Long projectRoleId, RoleActor roleActor)
           
ProjectRoleActorsImpl(Long projectId, Long projectRoleId, Set roleActors)
           
 
Method Summary
 DefaultRoleActors addRoleActor(RoleActor roleActor)
          Add the RoleActor to the contained set of RoleActors and return a new DefaultRoleActors with the modified set
 DefaultRoleActors addRoleActors(Collection roleActors)
          Add the collection of RoleActors to the contained set of RoleActors and return a new DefaultRoleActors with the modified set
 Long getProjectId()
           
 DefaultRoleActors removeRoleActor(RoleActor roleActor)
          Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set
 DefaultRoleActors removeRoleActors(Collection roleActors)
          Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set
 
Methods inherited from class com.atlassian.jira.security.roles.DefaultRoleActorsImpl
contains, getProjectRoleId, getRoleActors, getRoleActorsByType, getUsers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.security.roles.DefaultRoleActors
contains, getProjectRoleId, getRoleActors, getRoleActorsByType, getUsers
 

Constructor Detail

ProjectRoleActorsImpl

public ProjectRoleActorsImpl(Long projectId,
                             Long projectRoleId,
                             Set roleActors)

ProjectRoleActorsImpl

public ProjectRoleActorsImpl(Long projectId,
                             Long projectRoleId,
                             RoleActor roleActor)
Method Detail

getProjectId

public Long getProjectId()
Specified by:
getProjectId in interface ProjectRoleActors

addRoleActor

public DefaultRoleActors addRoleActor(RoleActor roleActor)
Description copied from interface: DefaultRoleActors
Add the RoleActor to the contained set of RoleActors and return a new DefaultRoleActors with the modified set

Specified by:
addRoleActor in interface DefaultRoleActors
Overrides:
addRoleActor in class DefaultRoleActorsImpl
Parameters:
roleActor - the RoleActor to add
Returns:
a copy of this DefaultRoleActors with the added RoleActor in its set of RoleActors

addRoleActors

public DefaultRoleActors addRoleActors(Collection roleActors)
Description copied from interface: DefaultRoleActors
Add the collection of RoleActors to the contained set of RoleActors and return a new DefaultRoleActors with the modified set

Specified by:
addRoleActors in interface DefaultRoleActors
Overrides:
addRoleActors in class DefaultRoleActorsImpl
Parameters:
roleActors - the collection RoleActor to add
Returns:
a copy of this DefaultRoleActors with the added RoleActors in its set of RoleActors

removeRoleActor

public DefaultRoleActors removeRoleActor(RoleActor roleActor)
Description copied from interface: DefaultRoleActors
Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set

Specified by:
removeRoleActor in interface DefaultRoleActors
Overrides:
removeRoleActor in class DefaultRoleActorsImpl
Parameters:
roleActor - the RoleActor to remove
Returns:
a copy of this DefaultRoleActors with the removed RoleActor in its set of RoleActors, may be this if unchanged

removeRoleActors

public DefaultRoleActors removeRoleActors(Collection roleActors)
Description copied from interface: DefaultRoleActors
Remove the RoleActor from the contained set of RoleActors and return a new DefaultRoleActors with the modified set

Specified by:
removeRoleActors in interface DefaultRoleActors
Overrides:
removeRoleActors in class DefaultRoleActorsImpl
Parameters:
roleActors - the RoleActor to add
Returns:
a copy of this DefaultRoleActors with the removed RoleActors in its set of RoleActors, may be this if unchanged.


Copyright © 2002-2009 Atlassian. All Rights Reserved.