|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectRoleService
Must be used to access all ProjectRole functionality.
Method Summary | |
---|---|
void |
addActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
java.lang.String[] actors,
RemoteProjectRole projectRole,
RemoteProject project,
java.lang.String actorType)
Will add project role actor associations based off the passed in actors and checking the
currentUser has the correct permissions to perform the update operation. |
void |
addDefaultActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
java.lang.String[] actors,
RemoteProjectRole projectRole,
java.lang.String type)
Will add default role actor associations based off the passed in actors and checking the
currentUser has the correct permissions to perform the update operation. |
RemoteProjectRole |
createProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
RemoteProjectRole projectRole)
Will create the project role based off the passed in projectRole.getName() ,
projectRole.getDescription() and checking the currentUser has the correct permissions
to perform the create operation. |
void |
deleteProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
RemoteProjectRole projectRole,
boolean confirm)
Will delete the project role based off the passed in projectRole and checking the
currentUser has the correct permissions to perform the delete operation. |
RemoteScheme[] |
getAssociatedNotificationSchemes(com.atlassian.crowd.embedded.api.User currentUser,
RemoteProjectRole projectRole)
Will get all notification scheme's that the specified projectRole is currently used in. |
RemoteScheme[] |
getAssociatedPermissionSchemes(com.atlassian.crowd.embedded.api.User currentUser,
RemoteProjectRole projectRole)
Will get all permission scheme's that the specified projectRole is currently used in. |
RemoteRoleActors |
getDefaultRoleActors(com.atlassian.crowd.embedded.api.User currentUser,
RemoteProjectRole projectRole)
Will return the project role actors based off the passed in projectRole checking the
currentUser has the correct permissions to perform the get operation. |
RemoteProjectRole |
getProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
java.lang.Long id)
Will return the project role based off the passed in id , and checking the currentUser
has the correct permissions to perform the operation. |
RemoteProjectRoleActors |
getProjectRoleActors(com.atlassian.crowd.embedded.api.User currentUser,
RemoteProjectRole projectRole,
RemoteProject project)
Will return the project role actors based off the passed in projectRole and project
checking the currentUser has the correct permissions to perform the get operation. |
RemoteProjectRole[] |
getProjectRoles(com.atlassian.crowd.embedded.api.User currentUser)
Get all the ProjectRoles available in JIRA. |
boolean |
isProjectRoleNameUnique(com.atlassian.crowd.embedded.api.User currentUser,
java.lang.String name)
Will tell you if a role name exists or not. |
void |
removeActorsFromProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
java.lang.String[] actors,
RemoteProjectRole projectRole,
RemoteProject project,
java.lang.String actorType)
Will remove project role actor associations based off the passed in actors and checking the
currentUser has the correct permissions to perform the update operation. |
void |
removeAllRoleActorsByNameAndType(com.atlassian.crowd.embedded.api.User currentUser,
java.lang.String name,
java.lang.String type)
Will remove all role actors with the specified name and the specified type. |
void |
removeAllRoleActorsByProject(com.atlassian.crowd.embedded.api.User currentUser,
RemoteProject project)
Will remove all role actors associated with the specified project. |
void |
removeDefaultActorsFromProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
java.lang.String[] actors,
RemoteProjectRole projectRole,
java.lang.String actorType)
Will remove default role actor associations based off the passed in actors and checking the
currentUser has the correct permissions to perform the update operation. |
void |
updateProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
RemoteProjectRole projectRole)
Will update the project role based off the passed in projectRole and checking the
currentUser has the correct permissions to perform the update operation. |
Method Detail |
---|
RemoteProjectRole[] getProjectRoles(com.atlassian.crowd.embedded.api.User currentUser) throws RemoteException
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
RemoteProjectRole getProjectRole(com.atlassian.crowd.embedded.api.User currentUser, java.lang.Long id) throws RemoteException
id
, and checking the currentUser
has the correct permissions to perform the operation.
currentUser
- id
-
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
RemoteProjectRole createProjectRole(com.atlassian.crowd.embedded.api.User currentUser, RemoteProjectRole projectRole) throws RemoteException
projectRole.getName()
,
projectRole.getDescription()
and checking the currentUser
has the correct permissions
to perform the create operation.
currentUser
- projectRole
- can not be null and will contain the name and description for the project role to create
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
boolean isProjectRoleNameUnique(com.atlassian.crowd.embedded.api.User currentUser, java.lang.String name) throws RemoteException
name
- the name of the project role to check
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
void deleteProjectRole(com.atlassian.crowd.embedded.api.User currentUser, RemoteProjectRole projectRole, boolean confirm) throws RemoteException
projectRole
and checking the
currentUser
has the correct permissions to perform the delete operation. This will also delete all
ProjectRoleActor associations that it is the parent of. If the confirm flag is false then this method will
check to see if the role is associated with any permission or notification schemes and if so it will throw
an exception informing you which schemes and it will not perform the delete. To force a delete pass the confirm
flag in as true.
currentUser
- projectRole
- confirm
-
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
- thrown if the confirm flag is false and the role is used by a notification or
permission scheme.void addActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser, java.lang.String[] actors, RemoteProjectRole projectRole, RemoteProject project, java.lang.String actorType) throws RemoteException
actors
and checking the
currentUser
has the correct permissions to perform the update operation.
currentUser
- actors
- is a list of strings that they RoleActor impl should be able to handleprojectRole
- is the project role to associate withproject
- is the project to associate withactorType
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE ("atlassian-user-role-actor"),
GroupRoleActor.TYPE ("atlassian-group-role-actor"))
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
void removeActorsFromProjectRole(com.atlassian.crowd.embedded.api.User currentUser, java.lang.String[] actors, RemoteProjectRole projectRole, RemoteProject project, java.lang.String actorType) throws RemoteException
actors
and checking the
currentUser
has the correct permissions to perform the update operation.
currentUser
- actors
- is a list of strings that the RoleActor impl should be able to handleprojectRole
- is the project role to associate withproject
- is the project to associate withactorType
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE ("atlassian-user-role-actor"),
GroupRoleActor.TYPE ("atlassian-group-role-actor"))
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
void updateProjectRole(com.atlassian.crowd.embedded.api.User currentUser, RemoteProjectRole projectRole) throws RemoteException
projectRole
and checking the
currentUser
has the correct permissions to perform the update operation.
currentUser
- projectRole
-
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
RemoteProjectRoleActors getProjectRoleActors(com.atlassian.crowd.embedded.api.User currentUser, RemoteProjectRole projectRole, RemoteProject project) throws RemoteException
projectRole
and project
checking the currentUser
has the correct permissions to perform the get operation.
currentUser
- projectRole
- project
-
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
RemoteRoleActors getDefaultRoleActors(com.atlassian.crowd.embedded.api.User currentUser, RemoteProjectRole projectRole) throws RemoteException
projectRole
checking the
currentUser
has the correct permissions to perform the get operation.
currentUser
- projectRole
-
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
void addDefaultActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser, java.lang.String[] actors, RemoteProjectRole projectRole, java.lang.String type) throws RemoteException
actors
and checking the
currentUser
has the correct permissions to perform the update operation.
currentUser
- actors
- is a list of strings that the RoleActor impl should be able to handleprojectRole
- is the project role to associate withtype
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE,
GroupRoleActor.TYPE)
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
void removeDefaultActorsFromProjectRole(com.atlassian.crowd.embedded.api.User currentUser, java.lang.String[] actors, RemoteProjectRole projectRole, java.lang.String actorType) throws RemoteException
actors
and checking the
currentUser
has the correct permissions to perform the update operation.
currentUser
- actors
- is a list of strings that they RoleActor impl should be able to handleprojectRole
- is the project role to associate withactorType
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE,
GroupRoleActor.TYPE)
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
void removeAllRoleActorsByNameAndType(com.atlassian.crowd.embedded.api.User currentUser, java.lang.String name, java.lang.String type) throws RemoteException
currentUser
- name
- this is the name that the role actor is stored under (ex. username of 'admin', group name of
'jira-users')type
- this is the role type parameter, (ex. GroupRoleActor.TYPE, UserRoleActor.TYPE)
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
void removeAllRoleActorsByProject(com.atlassian.crowd.embedded.api.User currentUser, RemoteProject project) throws RemoteException
currentUser
- project
-
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
RemoteScheme[] getAssociatedNotificationSchemes(com.atlassian.crowd.embedded.api.User currentUser, RemoteProjectRole projectRole) throws RemoteException
currentUser
- projectRole
-
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
RemoteScheme[] getAssociatedPermissionSchemes(com.atlassian.crowd.embedded.api.User currentUser, RemoteProjectRole projectRole) throws RemoteException
currentUser
- projectRole
-
RemoteValidationException
- thrown if
and invalid parameter is passed or if the currentUser does not have permission
to perform the operation.
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |