|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.mock.MockProjectRoleManager.MockRoleActor
public static class MockProjectRoleManager.MockRoleActor
Field Summary | |
---|---|
static String |
INVALID_PARAMETER
|
static String |
TYPE
|
Fields inherited from interface com.atlassian.jira.security.roles.ProjectRoleActor |
---|
GROUP_ROLE_ACTOR_TYPE, USER_ROLE_ACTOR_TYPE |
Constructor Summary | |
---|---|
MockProjectRoleManager.MockRoleActor(Long id,
Long projectRoleId,
Long projectId,
Set<com.atlassian.crowd.embedded.api.User> users,
String type,
String parameter)
|
Method Summary | |
---|---|
boolean |
contains(ApplicationUser user)
Does this RoleActor contain the specified user. |
boolean |
contains(com.atlassian.crowd.embedded.api.User user)
Does this RoleActor contain the specified user. |
boolean |
equals(Object o)
|
String |
getDescriptor()
Returns a pretty viewable representation of the contents of the RoleActor (e.g. |
Long |
getId()
Returns the id for the Role Actor |
String |
getParameter()
Returns the string that identifies the target of this role actor (ex. |
String |
getPrettyName()
|
Long |
getProjectId()
Gets the project this is associated with. |
Long |
getProjectRoleId()
This will get the ProjectRole that this RoleActor belongs to. |
String |
getType()
Returns a string that identifies the implementation type. |
Set<com.atlassian.crowd.embedded.api.User> |
getUsers()
Will provide a Set of users encapsulated by this RoleActor. |
int |
hashCode()
|
boolean |
isActive()
Whether this Role Actor entity is active or not; |
void |
setId(Long id)
|
void |
setParameter(String parameter)
|
void |
setProjectId(Long projectId)
|
void |
setProjectRoleId(Long projectRoleId)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String INVALID_PARAMETER
public static final String TYPE
Constructor Detail |
---|
public MockProjectRoleManager.MockRoleActor(Long id, Long projectRoleId, Long projectId, Set<com.atlassian.crowd.embedded.api.User> users, String type, String parameter) throws RoleActorDoesNotExistException
RoleActorDoesNotExistException
Method Detail |
---|
public Long getId()
RoleActor
getId
in interface RoleActor
public void setId(Long id)
public Long getProjectRoleId()
RoleActor
getProjectRoleId
in interface RoleActor
public void setProjectRoleId(Long projectRoleId)
public Long getProjectId()
ProjectRoleActor
getProjectId
in interface ProjectRoleActor
public void setProjectId(Long projectId)
public String getPrettyName()
public String getDescriptor()
RoleActor
getDescriptor
in interface RoleActor
public String getType()
RoleActor
getType
in interface RoleActor
public String getParameter()
RoleActor
getParameter
in interface RoleActor
public Set<com.atlassian.crowd.embedded.api.User> getUsers()
RoleActor
getUsers
in interface RoleActor
public void setParameter(String parameter) throws RoleActorDoesNotExistException
RoleActorDoesNotExistException
public boolean contains(ApplicationUser user)
RoleActor
contains
in interface RoleActor
user
- the user to check if they are contained
public boolean contains(com.atlassian.crowd.embedded.api.User user)
RoleActor
contains
in interface RoleActor
user
- the user to check if they are contained
public boolean isActive()
RoleActor
isActive
in interface RoleActor
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |