Class RoleScope

  • All Implemented Interfaces:
    Loggable

    public class RoleScope
    extends Object
    implements Loggable
    Represents scope of the role when role is associated with a user. Role can have either global or project scope.
    • Method Detail

      • getProjectId

        public String getProjectId()
        Returns:
        internal id of the associated project
      • isGlobal

        public boolean isGlobal()
      • globalScope

        public static RoleScope globalScope()
      • projectScope

        public static RoleScope projectScope​(@NotNull
                                             String projectId)
        Parameters:
        projectId - project internal id
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • describe

        @NotNull
        public String describe​(boolean verbose)
        Specified by:
        describe in interface Loggable
        Parameters:
        verbose - verbosity of object description
        Returns:
        description of this object. If verbose is true, description should have mode details.