Refine search
@ExperimentalApi public interface SetValidateResult { } }
/** * 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);
/** * Grants a user group a global permission. * * @param globalPermissionType global permission, must not be null. * @param group the name of the group. Null means "anyone" group. * The JIRA use, admin and sysadmin permission cannot be granted to "anyone". * * @return true if permission was added. */ @ExperimentalApi boolean addPermission(@Nonnull GlobalPermissionType globalPermissionType, String group);
/** * 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;
/** * Returns the global permission details for the given permission key. * * @param permissionKey the global permission key * @return the global permission details for the given permission key. * * @since 6.2.5 */ @ExperimentalApi Option<GlobalPermissionType> getGlobalPermission(@Nonnull GlobalPermissionKey permissionKey);
/** * Represents objects that can be put into an {@link com.atlassian.jira.event.issue.IssueEventBundle}. * * @since 6.3.10 */ @ExperimentalApi public interface JiraIssueEvent { }
/** * Returns a global permission matching the specified key. * * @param permissionKey the key of the permission declared by global permission module. * @return a global permission for the given permission key. */ @ExperimentalApi Option<GlobalPermissionType> getGlobalPermission(@Nonnull String permissionKey);
/** * 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);
/** * 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);
/** * @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);
/** * 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);
/** * Marker interface for all entity property deleted events. * @since v6.2 */ @ExperimentalApi public interface EntityPropertyDeletedEvent { }
/** * Allows you to construct {@link ApplicationUser} for {@link #validateUpdateUser(ApplicationUser)} */ @Nonnull @ExperimentalApi ApplicationUserBuilder newUserBuilder(@Nonnull ApplicationUser user);
@ExperimentalApi public static class IsValidIssueKeyPredicate implements Predicate<String> { @Override public boolean apply(final String issueKey) { return IssueKey.isValidKey(issueKey); } } }
/** * 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();
@ExperimentalApi class PropertyResult extends PropertyServiceResult { public PropertyResult(ErrorCollection errorCollection, Option<EntityProperty> entityProperty) { super(errorCollection, entityProperty); } }
/** * Checks for the existence of this user across all directories to determine * whether or not the user exists in the specified directory and whether or not * it is shadowing or shadowed by a user with the same username in another * active user directory. * * @param username the username to check * @param directoryId the directory ID of the user directory that the user came from * @return the shadowing state of the specified user */ @ExperimentalApi @Nonnull UserState getUserState(@Nonnull String username, long directoryId);
@ExperimentalApi public boolean isKeyChanged() { return keyChanged; }
/** * Retrieve all the groups with the given permission. * <p> * Only groups directly associated with the permission will be returned. * </p> * * @param permissionKey global permission, must not be null. * @return a Collection of {@link Group}'s, will never be null. * * @since 6.2.5 */ @ExperimentalApi @Nonnull Collection<Group> getGroupsWithPermission(@Nonnull GlobalPermissionKey permissionKey);