|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of ErrorCollection in com.atlassian.jira.bc |
---|
Methods in com.atlassian.jira.bc that return ErrorCollection | |
---|---|
ErrorCollection |
ServiceResult.getErrorCollection()
|
ErrorCollection |
ServiceResultImpl.getErrorCollection()
|
ErrorCollection |
JiraServiceContext.getErrorCollection()
Gets an error collection. |
ErrorCollection |
JiraServiceContextImpl.getErrorCollection()
Returns error collection, never null |
Constructors in com.atlassian.jira.bc with parameters of type ErrorCollection | |
---|---|
JiraServiceContextImpl(ApplicationUser user,
ErrorCollection errorCollection)
Instantiates this class with user and error collection. |
|
JiraServiceContextImpl(ApplicationUser user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
Instantiates this class with user and error collection and I18nHelper. |
|
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection)
Instantiates this class with user and error collection. |
|
JiraServiceContextImpl(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection,
I18nHelper i18nHelper)
Instantiates this class with user and error collection and I18nHelper. |
|
ServiceResultImpl(ErrorCollection errorCollection)
|
Uses of ErrorCollection in com.atlassian.jira.bc.dataimport |
---|
Methods in com.atlassian.jira.bc.dataimport that return ErrorCollection | |
---|---|
ErrorCollection |
DataImportService.ImportResult.Builder.getErrorCollection()
|
Constructors in com.atlassian.jira.bc.dataimport with parameters of type ErrorCollection | |
---|---|
DataImportService.ImportValidationResult(ErrorCollection errorCollection,
DataImportParams params)
|
Uses of ErrorCollection in com.atlassian.jira.bc.issue |
---|
Methods in com.atlassian.jira.bc.issue that return ErrorCollection | |
---|---|
ErrorCollection |
IssueService.delete(com.atlassian.crowd.embedded.api.User user,
IssueService.DeleteValidationResult deleteValidationResult)
This method will delete an issue from JIRA. |
ErrorCollection |
IssueService.delete(com.atlassian.crowd.embedded.api.User user,
IssueService.DeleteValidationResult deleteValidationResult,
EventDispatchOption eventDispatchOption,
boolean sendMail)
This method will delete an issue from JIRA. |
Constructors in com.atlassian.jira.bc.issue with parameters of type ErrorCollection | |
---|---|
IssueService.AssignValidationResult(MutableIssue issue,
ErrorCollection errors,
String assigneeId)
|
|
IssueService.CreateValidationResult(MutableIssue issue,
ErrorCollection errors,
Map<String,Object> fieldValuesHolder)
|
|
IssueService.DeleteValidationResult(MutableIssue issue,
ErrorCollection errors)
|
|
IssueService.IssueResult(MutableIssue issue,
ErrorCollection errors)
|
|
IssueService.IssueValidationResult(MutableIssue issue,
ErrorCollection errors)
|
|
IssueService.TransitionValidationResult(MutableIssue issue,
ErrorCollection errors,
Map<String,Object> fieldValuesHolder,
Map additionInputs,
int actionId)
|
|
IssueService.UpdateValidationResult(MutableIssue issue,
ErrorCollection errors,
Map<String,Object> fieldValuesHolder)
|
Uses of ErrorCollection in com.atlassian.jira.bc.issue.comment |
---|
Methods in com.atlassian.jira.bc.issue.comment with parameters of type ErrorCollection | |
---|---|
Comment |
CommentService.create(ApplicationUser user,
Issue issue,
String body,
boolean dispatchEvent,
ErrorCollection errorCollection)
Creates and persists a Comment on the given Issue set with current date and time, visible to all
- no group level or role level restriction. |
Comment |
CommentService.create(ApplicationUser user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent,
ErrorCollection errorCollection)
Creates and persists a Comment on the given Issue set with current date and time. |
Comment |
CommentService.create(ApplicationUser user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent,
ErrorCollection errorCollection)
Creates and persists a Comment on the given Issue . |
Comment |
CommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
boolean dispatchEvent,
ErrorCollection errorCollection)
Deprecated. Use CommentService.create(ApplicationUser user, Issue issue, String body, boolean dispatchEvent, ErrorCollection errorCollection) instead. Since v6.0.
Creates and persists a Comment on the given Issue set with current date and time, visible to all
- no group level or role level restriction. |
Comment |
CommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
boolean dispatchEvent,
ErrorCollection errorCollection)
Deprecated. Use CommentService.create(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue, String, String, Long, boolean, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Creates and persists a Comment on the given Issue set with current date and time. |
Comment |
CommentService.create(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
String groupLevel,
Long roleLevelId,
Date created,
boolean dispatchEvent,
ErrorCollection errorCollection)
Deprecated. Use CommentService.create(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue, String, String, Long, java.util.Date, boolean, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Creates and persists a Comment on the given Issue . |
Comment |
CommentService.getCommentById(ApplicationUser user,
Long commentId,
ErrorCollection errorCollection)
|
Comment |
CommentService.getCommentById(com.atlassian.crowd.embedded.api.User user,
Long commentId,
ErrorCollection errorCollection)
Deprecated. Use CommentService.getCommentById(ApplicationUser user, Long commentId, ErrorCollection errorCollection) instead. Since v6.0.
Will return a comment for the passed in commentId. This will return null
if the user does not have permission to view the comment |
List<Comment> |
CommentService.getCommentsForUser(ApplicationUser currentUser,
Issue issue,
ErrorCollection errorCollection)
Will return a list of Comment s for the given user |
List<Comment> |
CommentService.getCommentsForUser(com.atlassian.crowd.embedded.api.User currentUser,
Issue issue,
ErrorCollection errorCollection)
Deprecated. Use CommentService.getCommentsForUser(ApplicationUser currentUser, Issue issue, ErrorCollection errorCollection) instead. Since v6.0.
Will return a list of Comment s for the given user |
MutableComment |
CommentService.getMutableComment(ApplicationUser user,
Long commentId,
ErrorCollection errorCollection)
|
MutableComment |
CommentService.getMutableComment(com.atlassian.crowd.embedded.api.User user,
Long commentId,
ErrorCollection errorCollection)
Deprecated. Use CommentService.getCommentById(com.atlassian.jira.user.ApplicationUser, Long, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will return a MutableComment for the passed in commentId. This
will return null if the user does not have permission to view the
comment. The difference between this method and
CommentService.getCommentById(User,Long,ErrorCollection) is that this method
returns a version of the Comment that we can set values on. |
boolean |
CommentService.hasPermissionToCreate(ApplicationUser user,
Issue issue,
ErrorCollection errorCollection)
|
boolean |
CommentService.hasPermissionToCreate(com.atlassian.crowd.embedded.api.User user,
Issue issue,
ErrorCollection errorCollection)
Deprecated. Use CommentService.hasPermissionToCreate(ApplicationUser user, Issue issue, ErrorCollection errorCollection) instead. Since v6.0.
Has the correct permission to create a comment for the given issue. |
boolean |
CommentService.hasPermissionToEdit(ApplicationUser user,
Comment comment,
ErrorCollection errorCollection)
|
boolean |
CommentService.hasPermissionToEdit(com.atlassian.crowd.embedded.api.User user,
Comment comment,
ErrorCollection errorCollection)
Deprecated. Use CommentService.hasPermissionToCreate(ApplicationUser user, Issue issue, ErrorCollection errorCollection) instead. Since v6.0.
Determine whether the current user has the permission to edit the
comment. In case of errors, add error messages to the error collection.
Passing in null comment or a comment with null ID will return false and
an error message will be added to the error collection.
Passing in null error collection will throw NPE. |
boolean |
CommentService.isValidAllCommentData(ApplicationUser user,
Issue issue,
String body,
String groupLevel,
String roleLevelId,
ErrorCollection errorCollection)
|
boolean |
CommentService.isValidAllCommentData(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String body,
String groupLevel,
String roleLevelId,
ErrorCollection errorCollection)
Deprecated. Use CommentService.isValidAllCommentData(ApplicationUser user, Issue issue, String body, String groupLevel, String roleLevelId, ErrorCollection errorCollection) instead. Since v6.0.
Will call all other validate methods setting the appropriate errors
in the errorCollection if any errors occur. |
boolean |
CommentService.isValidCommentBody(String body,
ErrorCollection errorCollection)
Validates that the body is a valid string, if not the appropriate error is added to the errorCollection . |
boolean |
CommentService.isValidCommentBody(String body,
ErrorCollection errorCollection,
boolean allowEmpty)
Validates that the body is a valid string, if not the appropriate error is added to the errorCollection . |
boolean |
CommentService.isValidCommentData(ApplicationUser user,
Issue issue,
String groupLevel,
String roleLevelId,
ErrorCollection errorCollection)
|
boolean |
CommentService.isValidCommentData(com.atlassian.crowd.embedded.api.User user,
Issue issue,
String groupLevel,
String roleLevelId,
ErrorCollection errorCollection)
Deprecated. Use CommentService.isValidCommentData(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue, String, String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
This method validates if the comment has the correct role and group
levels set. If there is an error during validation the passed in
errorCollection will contain the errors. |
void |
CommentService.update(ApplicationUser user,
MutableComment comment,
boolean dispatchEvent,
ErrorCollection errorCollection)
Updates a Comment and sets the comments updated date to be now and the updatedAuthor to be the
passed in user. |
void |
CommentService.update(com.atlassian.crowd.embedded.api.User user,
MutableComment comment,
boolean dispatchEvent,
ErrorCollection errorCollection)
Deprecated. Use CommentService.update(ApplicationUser user, MutableComment comment, boolean dispatchEvent, ErrorCollection errorCollection) instead. Since v6.0.
Updates a Comment and sets the comments updated date to be now and the updatedAuthor to be the
passed in user. |
void |
CommentService.validateCommentUpdate(ApplicationUser user,
Long commentId,
String body,
String groupLevel,
Long roleLevelId,
ErrorCollection errorCollection)
Confirms the parameters to update a comment are valid and that the updating user has the permission to do so. |
void |
CommentService.validateCommentUpdate(com.atlassian.crowd.embedded.api.User user,
Long commentId,
String body,
String groupLevel,
Long roleLevelId,
ErrorCollection errorCollection)
Deprecated. Use CommentService.validateCommentUpdate(ApplicationUser user, Long commentId, String body, String groupLevel, Long roleLevelId, ErrorCollection errorCollection) instead. Since v6.0.
Confirms the parameters to update a comment are valid and that the updating user has the permission to do so.
This method will validate the raw input parameters. This method only validates the parameters and will not
actually persist the changes, you must call CommentService.update(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.comments.MutableComment, boolean, com.atlassian.jira.util.ErrorCollection) to persist the changes. If an error is encountered
then the ErrorCollection will contain the specific error message. |
Uses of ErrorCollection in com.atlassian.jira.bc.issue.label |
---|
Constructors in com.atlassian.jira.bc.issue.label with parameters of type ErrorCollection | |
---|---|
LabelService.AddLabelValidationResult(Long issueId,
Long customFieldId,
ErrorCollection errorCollection,
String label)
|
|
LabelService.LabelsResult(Set<Label> labels,
ErrorCollection errorCollection)
|
|
LabelService.LabelSuggestionResult(Set<String> suggestions,
ErrorCollection errorCollection)
|
|
LabelService.LabelValidationResult(Long issueId,
Long customFieldId,
ErrorCollection errorCollection)
|
|
LabelService.SetLabelValidationResult(Long issueId,
Long customFieldId,
ErrorCollection errorCollection,
Set<String> labels)
|
Uses of ErrorCollection in com.atlassian.jira.bc.issue.link |
---|
Constructors in com.atlassian.jira.bc.issue.link with parameters of type ErrorCollection | |
---|---|
IssueLinkService.AddIssueLinkValidationResult(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection,
Issue issueId,
IssueLinkType linkType,
Direction direction,
Collection<String> linkKeys)
|
|
IssueLinkService.IssueLinkResult(ErrorCollection errorCollection,
LinkCollection linkCollection)
|
|
IssueLinkService.IssueLinkValidationResult(ErrorCollection errorCollection,
Issue issueId)
|
|
IssueLinkService.SingleIssueLinkResult(ErrorCollection errorCollection,
IssueLink issueLink)
|
Uses of ErrorCollection in com.atlassian.jira.bc.issue.vote |
---|
Constructors in com.atlassian.jira.bc.issue.vote with parameters of type ErrorCollection | |
---|---|
VoteService.VoteValidationResult(ErrorCollection errors,
com.atlassian.crowd.embedded.api.User voter,
Issue issue)
|
Uses of ErrorCollection in com.atlassian.jira.bc.license |
---|
Methods in com.atlassian.jira.bc.license that return ErrorCollection | |
---|---|
ErrorCollection |
JiraLicenseService.ValidationResult.getErrorCollection()
|
Uses of ErrorCollection in com.atlassian.jira.bc.project |
---|
Uses of ErrorCollection in com.atlassian.jira.bc.project.component |
---|
Methods in com.atlassian.jira.bc.project.component with parameters of type ErrorCollection | |
---|---|
ProjectComponent |
ProjectComponentService.create(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection,
String name,
String description,
String lead,
Long projectId)
|
ProjectComponent |
ProjectComponentService.find(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection,
Long id)
|
Collection<ProjectComponent> |
ProjectComponentService.findAllForProject(ErrorCollection errorCollection,
Long projectId)
|
ProjectComponent |
ProjectComponentService.update(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errorCollection,
MutableProjectComponent component)
|
Uses of ErrorCollection in com.atlassian.jira.bc.project.version |
---|
Methods in com.atlassian.jira.bc.project.version that return ErrorCollection | |
---|---|
ErrorCollection |
VersionService.ValidationResult.getErrorCollection()
|
ErrorCollection |
VersionService.validateVersionDetails(com.atlassian.crowd.embedded.api.User user,
Version version,
String name,
String description)
Validate the name and description of a version, if you have edit permission. |
Uses of ErrorCollection in com.atlassian.jira.bc.projectroles |
---|
Methods in com.atlassian.jira.bc.projectroles that return ErrorCollection | |
---|---|
ErrorCollection |
ProjectRoleService.validateRemoveAllRoleActorsByNameAndType(String name,
String type)
|
ErrorCollection |
ProjectRoleService.validateRemoveAllRoleActorsByNameAndType(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type)
Deprecated. Use ProjectRoleService.removeAllRoleActorsByNameAndType(String, String) instead. Since v6.0.
Will validate removing all role actors with the specified name and the specified type. This method should be used
before clean up after the actual subject of the role actor has been deleted (ex. deleting a user from the system).
Validation error wil be reported when name does not exists, type does not exists or user performing validation
does not have administrative rights |
Methods in com.atlassian.jira.bc.projectroles with parameters of type ErrorCollection | |
---|---|
void |
ProjectRoleService.addActorsToProjectRole(Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.addActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.addActorsToProjectRole(java.util.Collection, com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.project.Project, String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will add project role actor associations for the given actors and checking
the currentUser has the correct permissions to perform the update operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
void |
ProjectRoleService.addDefaultActorsToProjectRole(Collection<String> actors,
ProjectRole projectRole,
String type,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.addDefaultActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
String type,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.addActorsToProjectRole(java.util.Collection, com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.project.Project, String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
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.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
ProjectRole |
ProjectRoleService.createProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
|
ProjectRole |
ProjectRoleService.createProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.createProjectRole(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will create the project role with the given projectRole.getName() ,
projectRole.getDescription() and checking the currentUser has the correct permissions
to perform the create operation. The passed in errorCollection will contain any errors that are
generated, such as permission violations. |
void |
ProjectRoleService.deleteProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.deleteProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.deleteProjectRole(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will delete the given projectRole and checks
the currentUser has the correct permissions to perform the delete operation.
This will also delete all ProjectRoleActor associations that it is the parent of.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
Collection |
ProjectRoleService.getAssociatedIssueSecuritySchemes(ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection |
ProjectRoleService.getAssociatedIssueSecuritySchemes(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getAssociatedIssueSecuritySchemes(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will get all issue security scheme's that the specified projectRole is currently used in. |
Collection |
ProjectRoleService.getAssociatedNotificationSchemes(ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection |
ProjectRoleService.getAssociatedNotificationSchemes(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getAssociatedNotificationSchemes(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will get all notification scheme's that the specified projectRole is currently used in. |
Collection |
ProjectRoleService.getAssociatedPermissionSchemes(ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection |
ProjectRoleService.getAssociatedPermissionSchemes(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getAssociatedPermissionSchemes(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will get all permission scheme's that the specified projectRole is currently used in. |
org.apache.commons.collections.MultiMap |
ProjectRoleService.getAssociatedWorkflows(ProjectRole projectRole,
ErrorCollection errorCollection)
|
org.apache.commons.collections.MultiMap |
ProjectRoleService.getAssociatedWorkflows(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getAssociatedWorkflows(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Returns workflows and their actions that are associated with the given
ProjectRole . e.g. com.atlassian.jira.workflow.condition.InProjectRoleCondition
workflow elements that block workflow transition unless the acting user is
in the ProjectRole. |
DefaultRoleActors |
ProjectRoleService.getDefaultRoleActors(ProjectRole projectRole,
ErrorCollection collection)
|
DefaultRoleActors |
ProjectRoleService.getDefaultRoleActors(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection collection)
Deprecated. Use ProjectRoleService.getProjectRoleActors(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.project.Project, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will return a DefaultRoleActors for the given projectRole checking the currentUser
has the correct permissions to perform the get operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
Map<Long,List<String>> |
ProjectRoleService.getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String userName,
ErrorCollection errorCollection)
|
Map<Long,List<String>> |
ProjectRoleService.getProjectIdsForUserInGroupsBecauseOfRole(com.atlassian.crowd.embedded.api.User currentUser,
List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String userName,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getProjectIdsForUserInGroupsBecauseOfRole(java.util.List, com.atlassian.jira.security.roles.ProjectRole, String, String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Returns a Map of Lists. The key of the map is a Long, project id and the value of the map is a list of group
names that the user is a member of for the project. This method is meant to provide an efficient means to
discover which groups that are associated with a project role implicitly include the specified user in that project
role. We allow you to specify a range of projectsToLimitBy so that you can perform only one query to find this
information for many projects for a single projectRole. |
ProjectRole |
ProjectRoleService.getProjectRole(Long id,
ErrorCollection errorCollection)
|
ProjectRole |
ProjectRoleService.getProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Long id,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getProjectRole(Long, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will return the project role with the given id , and checking the currentUser
has the correct permissions to perform the operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
ProjectRoleActors |
ProjectRoleService.getProjectRoleActors(ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
|
ProjectRoleActors |
ProjectRoleService.getProjectRoleActors(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getProjectRoleActors(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.project.Project, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will return a {@link ProjectRoleActors) for the given projectRole and project checking
the currentUser has the correct permissions to perform the get operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
ProjectRole |
ProjectRoleService.getProjectRoleByName(String name,
ErrorCollection errorCollection)
|
ProjectRole |
ProjectRoleService.getProjectRoleByName(com.atlassian.crowd.embedded.api.User currentUser,
String name,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getProjectRoleByName(String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will return the project role with the given name , and checking the currentUser
has the correct permissions to perform the operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
Collection<ProjectRole> |
ProjectRoleService.getProjectRoles(ErrorCollection errorCollection)
|
Collection<ProjectRole> |
ProjectRoleService.getProjectRoles(com.atlassian.crowd.embedded.api.User currentUser,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getProjectRoles(com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Get all the ProjectRoles available in JIRA. Currently this list is global. |
Collection<Project> |
ProjectRoleService.getProjectsContainingRoleActorByNameAndType(String name,
String type,
ErrorCollection errorCollection)
|
Collection<Project> |
ProjectRoleService.getProjectsContainingRoleActorByNameAndType(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.getProjectsContainingRoleActorByNameAndType(String, String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Returns the Project 's which contain a role actor of the specified name and type within any role. This is a method
that is provided so that you can efficiently tell which users or groups have been associated with
any role within projects. |
boolean |
ProjectRoleService.isProjectRoleNameUnique(String name,
ErrorCollection errorCollection)
|
boolean |
ProjectRoleService.isProjectRoleNameUnique(com.atlassian.crowd.embedded.api.User currentUser,
String name,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.isProjectRoleNameUnique(String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will tell you if a role name exists or not. |
void |
ProjectRoleService.removeActorsFromProjectRole(Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.removeActorsFromProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.removeActorsFromProjectRole(java.util.Collection, com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.project.Project, String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will remove project role actor associations for the given actors and checking
the currentUser has the correct permissions to perform the update operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
void |
ProjectRoleService.removeAllRoleActorsByNameAndType(String name,
String type,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.removeAllRoleActorsByNameAndType(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.removeAllRoleActorsByNameAndType(String, String, ErrorCollection) instead. Since v6.0.
Will remove all role actors with the specified name and the specified type. This method should be used
to clean up after the actual subject of the role actor has been deleted (ex. deleting a user from the system). |
void |
ProjectRoleService.removeAllRoleActorsByProject(Project project,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.removeAllRoleActorsByProject(com.atlassian.crowd.embedded.api.User currentUser,
Project project,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.removeAllRoleActorsByProject(com.atlassian.jira.project.Project, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will remove all role actors associated with the specified project. This method should be used
to clean up just before the actual project has been deleted (ex. deleting a project from the system). |
void |
ProjectRoleService.removeDefaultActorsFromProjectRole(Collection<String> actors,
ProjectRole projectRole,
String actorType,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.removeDefaultActorsFromProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
String actorType,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.removeDefaultActorsFromProjectRole(java.util.Collection, com.atlassian.jira.security.roles.ProjectRole, String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will remove default actor associations based off the passed in actors , projectRole and
actorType and checking the currentUser has the correct permissions to perform the update operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
List<Long> |
ProjectRoleService.roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String projectRoleParameter,
ErrorCollection errorCollection)
|
List<Long> |
ProjectRoleService.roleActorOfTypeExistsForProjects(com.atlassian.crowd.embedded.api.User currentUser,
List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String projectRoleParameter,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.roleActorOfTypeExistsForProjects(java.util.List, com.atlassian.jira.security.roles.ProjectRole, String, String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Returns a list of projectId's for which the role actor of the specified type exists in the project for the
provided projectRole. This is a method that is meant to efficiently allow discovery of whether a UserRoleActor
exists in a project role for a subset of projects. |
void |
ProjectRoleService.setActorsForProjectRole(Map<String,Set<String>> newRoleActors,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.setActorsForProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Map<String,Set<String>> newRoleActors,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.setActorsForProjectRole(java.util.Map, com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.project.Project, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will set the project role actor associations for the given newRoleActors and checking
the currentUser has the correct permissions to perform the update operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
void |
ProjectRoleService.updateProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
|
void |
ProjectRoleService.updateProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
Deprecated. Use ProjectRoleService.updateProjectRole(com.atlassian.jira.security.roles.ProjectRole, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will update projectRole , checking
the currentUser has the correct permissions to perform the update operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations. |
Uses of ErrorCollection in com.atlassian.jira.bc.user |
---|
Constructors in com.atlassian.jira.bc.user with parameters of type ErrorCollection | |
---|---|
UserService.CreateUsernameValidationResult(String username,
Long directoryId,
ErrorCollection errorCollection)
|
Uses of ErrorCollection in com.atlassian.jira.bc.whitelist |
---|
Constructors in com.atlassian.jira.bc.whitelist with parameters of type ErrorCollection | |
---|---|
WhitelistService.WhitelistResult(ErrorCollection errorCollection)
|
|
WhitelistService.WhitelistResult(ErrorCollection errorCollection,
List<String> rules)
|
|
WhitelistService.WhitelistUpdateValidationResult(ErrorCollection errorCollection)
|
|
WhitelistService.WhitelistUpdateValidationResult(ErrorCollection errorCollection,
List<String> rules,
boolean enabled)
|
Uses of ErrorCollection in com.atlassian.jira.bulkedit.operation |
---|
Methods in com.atlassian.jira.bulkedit.operation with parameters of type ErrorCollection | |
---|---|
void |
BulkMoveOperation.chooseContext(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser,
I18nHelper i18nHelper,
ErrorCollection errors)
|
void |
BulkMoveOperation.validatePopulateFields(BulkEditBean bulkEditBean,
ErrorCollection errors,
I18nHelper i18nHelper)
|
Uses of ErrorCollection in com.atlassian.jira.config |
---|
Methods in com.atlassian.jira.config with parameters of type ErrorCollection | |
---|---|
void |
ConstantsManager.validateCreateIssueType(String name,
String style,
String description,
String iconurl,
ErrorCollection errors,
String nameFieldName)
Validates creation of a new issuetype. |
void |
LocaleManager.validateUserLocale(com.atlassian.crowd.embedded.api.User loggedInUser,
String locale,
ErrorCollection errorCollection)
Given a user entered locale string this method ensures that it is in fact a locale that exits in this instance |
Uses of ErrorCollection in com.atlassian.jira.issue.customfields |
---|
Methods in com.atlassian.jira.issue.customfields with parameters of type ErrorCollection | |
---|---|
void |
CustomFieldType.validateFromParams(CustomFieldParams relevantParams,
ErrorCollection errorCollectionToAddTo,
FieldConfig config)
Ensures that the CustomFieldParams of Strings is a valid representation of the Custom Field values. |
Uses of ErrorCollection in com.atlassian.jira.issue.customfields.impl |
---|
Methods in com.atlassian.jira.issue.customfields.impl with parameters of type ErrorCollection | |
---|---|
void |
CalculatedCFType.validateFromParams(CustomFieldParams relevantParams,
ErrorCollection errorCollectionToAddTo,
FieldConfig config)
|
void |
AbstractSingleFieldType.validateFromParams(CustomFieldParams relevantParams,
ErrorCollection errorCollectionToAddTo,
FieldConfig config)
|
Uses of ErrorCollection in com.atlassian.jira.issue.customfields.impl.rest |
---|
Methods in com.atlassian.jira.issue.customfields.impl.rest that return ErrorCollection | |
---|---|
ErrorCollection |
AbstractCustomFieldOperationsHandler.updateIssueInputParameters(IssueContext issueCtx,
Issue issue,
String fieldId,
IssueInputParameters inputParameters,
List<FieldOperationHolder> operations)
|
Methods in com.atlassian.jira.issue.customfields.impl.rest with parameters of type ErrorCollection | |
---|---|
protected T |
AbstractCustomFieldOperationsHandler.applyOperation(IssueContext issueCtx,
Issue issue,
StandardOperation operation,
T currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
gets called (perhaps multiple times) to apply the given operation to the given currentValuye, retyrning the new value |
protected void |
TextCustomFieldOperationsHandler.finaliseOperation(String finalValue,
IssueInputParameters parameters,
ErrorCollection errors)
takes the value returnd by a call to applyOperation() and puts it into the inputparams |
protected abstract void |
AbstractCustomFieldOperationsHandler.finaliseOperation(T finalValue,
IssueInputParameters parameters,
ErrorCollection errors)
takes the value returnd by a call to applyOperation() and puts it into the inputparams |
protected abstract T |
AbstractCustomFieldOperationsHandler.getInitialValue(Issue issue,
ErrorCollection errors)
compute the "currentValue" to be passed to applyOperation() |
protected String |
TextCustomFieldOperationsHandler.getInitialValue(Issue issue,
ErrorCollection errors)
compute the "currentValue" to be passed to applyOperation() |
protected T |
AbstractCustomFieldOperationsHandler.handleAddOperation(IssueContext issueCtx,
Issue issue,
T currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
|
protected T |
AbstractCustomFieldOperationsHandler.handleRemoveOperation(IssueContext issueCtx,
Issue issue,
T currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
|
protected String |
TextCustomFieldOperationsHandler.handleSetOperation(IssueContext issueCtx,
Issue issue,
String currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
|
protected T |
AbstractCustomFieldOperationsHandler.handleSetOperation(IssueContext issueCtx,
Issue issue,
T currentFieldValue,
JsonData operationValue,
ErrorCollection errors)
|
Uses of ErrorCollection in com.atlassian.jira.issue.customfields.searchers.transformer |
---|
Methods in com.atlassian.jira.issue.customfields.searchers.transformer with parameters of type ErrorCollection | |
---|---|
void |
FreeTextCustomFieldSearchInputTransformer.validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
|
void |
NumberRangeCustomFieldSearchInputTransformer.validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
|
void |
UserPickerCustomFieldSearchInputTransformer.validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
|
void |
AbstractCustomFieldSearchInputTransformer.validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
|
Uses of ErrorCollection in com.atlassian.jira.issue.fields |
---|
Methods in com.atlassian.jira.issue.fields with parameters of type ErrorCollection | |
---|---|
void |
CustomField.validateFromActionParams(Map actionParameters,
ErrorCollection errorCollection,
FieldConfig config)
Validates relevant parameters on custom field type of this custom field. |
void |
OrderableField.validateParams(OperationContext operationContext,
ErrorCollection errorCollectionToAddTo,
I18nHelper i18n,
Issue issue,
FieldScreenRenderLayoutItem fieldScreenRenderLayoutItem)
Ensure that the parameters are valid |
Uses of ErrorCollection in com.atlassian.jira.issue.fields.rest |
---|
Methods in com.atlassian.jira.issue.fields.rest that return ErrorCollection | |
---|---|
ErrorCollection |
RestFieldOperationsHandler.updateIssueInputParameters(IssueContext issueCtx,
Issue issue,
String fieldId,
IssueInputParameters inputParameters,
List<FieldOperationHolder> operations)
This method has to set the field value(s) in the IssueInputParameters based on the operations. |
Methods in com.atlassian.jira.issue.fields.rest with parameters of type ErrorCollection | |
---|---|
Issue |
IssueFinder.findIssue(IssueRefJsonBean issueRef,
ErrorCollection errorCollection)
Finds an issue based on the passed-in id or key. |
Issue |
IssueFinder.findIssue(String idOrKey,
ErrorCollection errorCollection)
Finds an issue based on the passed-in id or key. |
IssueLinkType |
IssueLinkTypeFinder.findIssueLinkType(IssueLinkTypeJsonBean linkTypeBean,
ErrorCollection errors)
Fetches an IssueLinkType from its manager based on either the 'id' or the 'name' property of the IssueLinkTypeJsonBean. |
Uses of ErrorCollection in com.atlassian.jira.issue.fields.rest.json |
---|
Uses of ErrorCollection in com.atlassian.jira.issue.fields.util |
---|
Methods in com.atlassian.jira.issue.fields.util with parameters of type ErrorCollection | |
---|---|
void |
VersionHelperBean.validateVersionForProject(Collection versionIds,
Project project,
ErrorCollection errorCollection,
I18nHelper i18n,
String fieldId)
|
boolean |
VersionHelperBean.validateVersionIds(Collection versionIds,
ErrorCollection errorCollection,
I18nHelper i18n,
String fieldId)
|
Uses of ErrorCollection in com.atlassian.jira.issue.search.searchers.transformer |
---|
Methods in com.atlassian.jira.issue.search.searchers.transformer with parameters of type ErrorCollection | |
---|---|
void |
SearchInputTransformer.validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
Adds error meessages to the errors object if values in the fieldValuesHolder fails validation. |
void |
RelativeDateSearcherInputTransformer.validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
|
Uses of ErrorCollection in com.atlassian.jira.notification |
---|
Constructors in com.atlassian.jira.notification with parameters of type ErrorCollection | |
---|---|
AdhocNotificationService.ValidateNotificationResult(ErrorCollection errorCollection,
NotificationBuilder notification,
com.google.common.base.Supplier<Iterable<NotificationRecipient>> recipients,
com.atlassian.crowd.embedded.api.User from,
Issue issue)
|
Uses of ErrorCollection in com.atlassian.jira.util |
---|
Classes in com.atlassian.jira.util that implement ErrorCollection | |
---|---|
class |
SimpleErrorCollection
|
Methods in com.atlassian.jira.util that return ErrorCollection | |
---|---|
ErrorCollection |
ValidationFailureException.errors()
Returns the validation errors. |
Methods in com.atlassian.jira.util with parameters of type ErrorCollection | |
---|---|
void |
SimpleErrorCollection.addErrorCollection(ErrorCollection errors)
|
void |
ErrorCollection.addErrorCollection(ErrorCollection errors)
Populate this ErrorCollection with general and field-specific errors. |
Constructors in com.atlassian.jira.util with parameters of type ErrorCollection | |
---|---|
ValidationFailureException(ErrorCollection errors)
Constructs a new ValidationFailureException initialised with a collection of errors. |
|
ValidationFailureException(String message,
ErrorCollection errors,
Throwable throwable)
Constructs a new ValidationFailureException with an error message, a collection of errors, and a cause. |
Uses of ErrorCollection in com.atlassian.jira.web.action |
---|
Classes in com.atlassian.jira.web.action that implement ErrorCollection | |
---|---|
class |
JiraWebActionSupport
All web actions should extend this class - it provides basic common functionality for all web actions. |
class |
ProjectActionSupport
|
Methods in com.atlassian.jira.web.action with parameters of type ErrorCollection | |
---|---|
void |
JiraWebActionSupport.addErrorCollection(ErrorCollection errors)
|
Uses of ErrorCollection in com.atlassian.jira.web.action.issue |
---|
Methods in com.atlassian.jira.web.action.issue with parameters of type ErrorCollection | |
---|---|
void |
IssueCreationHelperBean.validateIssueType(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n)
|
void |
IssueCreationHelperBean.validateLicense(ErrorCollection errors,
I18nHelper i18n)
|
void |
IssueCreationHelperBean.validateProject(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n)
|
void |
IssueCreationHelperBean.validateSummary(Issue issue,
OperationContext operationContext,
Map actionParams,
ErrorCollection errors,
I18nHelper i18n)
|
Uses of ErrorCollection in com.atlassian.jira.web.bean |
---|
Methods in com.atlassian.jira.web.bean with parameters of type ErrorCollection | |
---|---|
void |
MultiBulkMoveBean.validate(ErrorCollection errors,
BulkMoveOperation bulkMoveOperation,
com.atlassian.crowd.embedded.api.User user)
|
Uses of ErrorCollection in com.atlassian.jira.workflow |
---|
Methods in com.atlassian.jira.workflow that return ErrorCollection | |
---|---|
ErrorCollection |
WorkflowTransitionUtil.progress()
|
ErrorCollection |
WorkflowTransitionUtil.validate()
|
Methods in com.atlassian.jira.workflow with parameters of type ErrorCollection | |
---|---|
static void |
WorkflowUtil.checkInvalidCharacters(String fieldValue,
String fieldName,
ErrorCollection errorCollection)
JRA-4429 (prevent invalid characters) |
static boolean |
WorkflowUtil.isAcceptableName(String workflowName,
String fieldName,
ErrorCollection errorCollection)
Check if given workflow name is valid that means it: Is not blank, contains only ASCII characters, does not contain leading or trailing whitespaces If any of the above is not meet the first error is added to errorCollection
If workflow name is valid then no error will be added to errorCollection |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |