Class RoleScope

  • All Implemented Interfaces:
    jetbrains.buildServer.log.Loggable

    public class RoleScope
    extends java.lang.Object
    implements jetbrains.buildServer.log.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 java.lang.String getProjectId()
        Returns:
        internal id of the associated project
      • isGlobal

        public boolean isGlobal()
      • globalScope

        public static RoleScope globalScope()
      • projectScope

        public static RoleScope projectScope​(@NotNull
                                             java.lang.String projectId)
        Parameters:
        projectId - project internal id
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • describe

        @NotNull
        public java.lang.String describe​(boolean verbose)
        Specified by:
        describe in interface jetbrains.buildServer.log.Loggable