@ExperimentalApi public interface SetValidateResult { } }
/** * Retrieves the {@link Issue} that has the given key, or null if no such Issue exists. * <p/> * This method will ignore case of issue key. * * @param key The Issue key. * @return a {@link MutableIssue} with the given key, or null if no such Issue exists. * @throws DataAccessException if there is an error in the Data Access Layer. * @since 6.1 */ @ExperimentalApi MutableIssue getIssueByKeyIgnoreCase(String key) throws DataAccessException;
/** * Represents objects that can be put into an {@link com.atlassian.jira.event.issue.IssueEventBundle}. * * @since 6.3.10 */ @ExperimentalApi public interface JiraIssueEvent { }
/** * Revokes a global permission for a user group * * @param globalPermissionType global permission, must not be null. * @param group the group name. NULL means the anyone group. * * @return true if the permission was revoked, false if not (e.g. the group does not have this permission) */ @ExperimentalApi boolean removePermission(GlobalPermissionType globalPermissionType, String group);
/** * @param permissionId id of the permission to check. * @return true if provided id is the id of a global permission. * * @deprecated Use {@link com.atlassian.jira.permission.GlobalPermissionKey} instead of {@code int}. Since v6.2.5 */ @ExperimentalApi boolean isGlobalPermission(int permissionId);
/** * Marker interface for all entity property deleted events. * @since v6.2 */ @ExperimentalApi public interface EntityPropertyDeletedEvent { }
@ExperimentalApi public static class IsValidIssueKeyPredicate implements Predicate<String> { @Override public boolean apply(final String issueKey) { return IssueKey.isValidKey(issueKey); } } }
@ExperimentalApi class PropertyResult extends PropertyServiceResult { public PropertyResult(ErrorCollection errorCollection, Option<EntityProperty> entityProperty) { super(errorCollection, entityProperty); } }
@ExperimentalApi public boolean isKeyChanged() { return keyChanged; }
@ExperimentalApi public class StringApplicationPropertySetEvent extends AbstractApplicationPropertySetEvent<String> { public StringApplicationPropertySetEvent(final String applicationPropertyKey, final String value) { super(applicationPropertyKey, value); } }
/** * Retrieves the {@link Issue} that has the given key, or null if no such Issue exists. * <p/> * This method will strictly only return the issue which has current issue key equal to the one given. * * @param key The Issue key. * @return a {@link MutableIssue} with the given key, or null if no such Issue exists. * @throws DataAccessException if there is an error in the Data Access Layer. * @since 6.1 */ @ExperimentalApi MutableIssue getIssueByCurrentKey(String key) throws DataAccessException;
/** * Sets the destination parent issue for issue->subtask conversion. * * @param parentIssueKey Parent issue key * @since 7.0 */ @ExperimentalApi public void setParentIssueKey(@Nullable String parentIssueKey);
/** * Retrieve a list of all products licenses installed in this instance. * <p/> * In JIRA 6.3 this method returns an iterable containing at most one license. In later versions it may contain * more. * * @return all product licenses installed in this instance. * @since 6.3 */ @ExperimentalApi @Nonnull Iterable<LicenseDetails> getLicenses();
/** * Check if this user is allowed to update their own user details. * <p> * Returns true if the given user is in a read-write directory AND the "External user management" setting is off. * * @param user The user * @return true if the given user is in a read-write directory AND the "External user management" setting is off. * * @since 6.4 */ @ExperimentalApi boolean userCanUpdateOwnDetails(@Nonnull ApplicationUser user);
/** * @since v6.1 * @return the user that initiated the action */ @ExperimentalApi @Nullable public ApplicationUser getUser() { return user; } }
/** * This convenience method is equivalent to * {@link #getUserState(String,long) getUserState(user.getUsername(), user.getDirectoryId())} * except that a {@code null} user is permitted and returns {@link UserState#INVALID_USER}. * * @param user the user to check * @return the shadowing state of the specified user */ @ExperimentalApi @Nonnull UserState getUserState(@Nullable ApplicationUser user);
/** * Retrieve all the group names with this permission. Only group names directly associated with the permission will * be returned. * * @param permissionKey global permission, must not be null. * @return a Collection of String, group names, will never be null. * * @since 6.2.5 */ @ExperimentalApi @Nonnull Collection<String> getGroupNamesWithPermission(@Nonnull GlobalPermissionKey permissionKey);
/** * Allows you to construct {@link ApplicationUser} for {@link #validateUpdateUser(ApplicationUser)} */ @Nonnull @ExperimentalApi ApplicationUserBuilder newUserBuilder(@Nonnull ApplicationUser user);
/** * Returns an immutable {@link Set} of {@link ApplicationRole}s that are configured be default for new users. * * @return the {@link Set} of {@link ApplicationRole}s that are configured be default for new users. * @deprecated Use {@link #getDefaultApplicationKeys()} instead. Since v7.0 */ @Nonnull @Deprecated @ExperimentalApi Set<ApplicationRole> getDefaultRoles();
@Nonnull @ExperimentalApi public static String getHasProjectsKey(int permission, @Nullable ApplicationUser user, Object... args) { return format("%s:%s:%s:%s", HAS_PROJECTS_PREFIX, permission, user, (args != null ? join(args, ":") : "")); } }