Class AlreadyAdminException

All Implemented Interfaces:
Serializable

public class AlreadyAdminException extends PerunException
Thrown when trying to assign role to a user/group while the user/group already has the role.
See Also:
  • Constructor Details

    • AlreadyAdminException

      public AlreadyAdminException(String message)
      Simple constructor with a message
      Parameters:
      message - message with details about the cause
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause)
      Constructor with a message and Throwable object
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
    • AlreadyAdminException

      public AlreadyAdminException(Throwable cause)
      Constructor with a Throwable object
      Parameters:
      cause - Throwable that caused throwing of this exception
    • AlreadyAdminException

      public AlreadyAdminException(Member member)
      Constructor with the member
      Parameters:
      member - member who is already in the role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, User user, String role)
      Constructor with a message, Throwable object, user and role
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      user - user who is already in the role
      role - the role in which the user already is
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, User user, Vo vo, String role)
      Constructor with a message, Throwable object, user, vo and role
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      user - user who is already in the role
      vo - the vo in which the user is already in the specific role
      role - the role in which the user already is
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, User user, Resource resource, String role)
      Constructor with a message, Throwable object, user, resource and role
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      user - user who is already in the role
      resource - resource in which the user is already in the specific role
      role - the role in which the user already is
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, User user, User sponsoredUser)
      Constructor with a message, Throwable object, user and sponsored user
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      user - user who is already a sponsor
      sponsoredUser - user who is already sponsored by that user
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, User user, Facility facility)
      Constructor with a message, Throwable object, user and facility
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      user - user who is already in the specific role
      facility - facility in which the user is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, User user, Resource resource)
      Constructor with a message, Throwable object, user and resource
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      user - user who is already in the specific role
      resource - resource in which the user is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, User user, Group group)
      Constructor with a message, Throwable object, user and a group
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      user - user who is already in the specific role
      group - group in which the user is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(User user)
      Constructor with the user
      Parameters:
      user - user who is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(User user, Vo vo)
      Constructor with the user and the vo
      Parameters:
      user - user who is already in the specific role
      vo - vo in which the user is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, Group authorizedGroup, String role)
      Constructor with a message, Throwable object, authorized group and role
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      authorizedGroup - group which is already in the specific role
      role - the role in which the group already is
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, Group authorizedGroup, Vo vo, String role)
      Constructor with a message, Throwable object, authorized group, vo and role
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      authorizedGroup - group which is already in the specific role
      vo - vo in which the group is already in the specific role
      role - the role in which the group already is
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, Group authorizedGroup, Resource resource, String role)
      Constructor with a message, Throwable object, authorized group, resource and role
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      authorizedGroup - group which is already in the specific role
      resource - resource in which the group is already in the specific role
      role - the role in which the group already is
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, Group authorizedGroup, Facility facility)
      Constructor with a message, Throwable object, authorized group and resource
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      authorizedGroup - group which is already in the specific role
      facility - facility in which the group is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, Group authorizedGroup, Resource resource)
      Constructor with a message, Throwable object, authorized group and resource
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      authorizedGroup - group which is already in the specific role
      resource - resource in which the group is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, Group authorizedGroup, User sponsoredUser)
      Constructor with a message, Throwable object, authorized group and sponsored user
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      authorizedGroup - group which is already a sponsor
      sponsoredUser - user who is already sponsored by the group
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, Group authorizedGroup, Group group)
      Constructor with a message, Throwable object, authorized group and group
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      authorizedGroup - group which is already in the specific role
      group - group in which the group is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(Group authorizedGroup)
      Constructor with the authorized group
      Parameters:
      authorizedGroup - group which is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(Group authorizedGroup, Vo vo)
      Constructor with the authorized group and the vo
      Parameters:
      authorizedGroup - group which is already a in the specific role
      vo - resource in which the group is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, User user, SecurityTeam securityTeam)
      Constructor with a message, Throwable object, user and the security team
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      user - user who is already in the specific role
      securityTeam - security team in which the user is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, User user, SecurityTeam securityTeam)
      Constructor with a message, user and security team
      Parameters:
      message - message with details about the cause
      user - user who is already in the specific role
      securityTeam - security team in which the user is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Throwable cause, Group group, SecurityTeam securityTeam)
      Constructor with a message, Throwable object, group and a security team
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
      group - group which is already in the specific role
      securityTeam - security team in which the group is already in the specific role
    • AlreadyAdminException

      public AlreadyAdminException(String message, Group group, SecurityTeam securityTeam)
      Constructor with a message, group and a security team
      Parameters:
      message - message with details about the cause
      group - group which is already in the specific role
      securityTeam - security team in which the group is already in the specific role
  • Method Details

    • getAuthorizedGroup

      public Group getAuthorizedGroup()
      Getter for the authorized group
      Returns:
      group which is already in the specific role
    • getFacility

      public Facility getFacility()
      Getter for the facility
      Returns:
      facility in which the user/entity is already in the specific role
    • getGroup

      public Group getGroup()
      Getter for the group
      Returns:
      group in which the user/entity is already in the specific role
    • getMember

      public Member getMember()
      Getter for the member
      Returns:
    • getResource

      public Resource getResource()
      Getter for the resource
      Returns:
      resource in which the user/entity is already in the specific role
    • getRole

      public String getRole()
      Getter for the role
      Returns:
      the specific role in which the user/group already is
    • getSecurityTeam

      public SecurityTeam getSecurityTeam()
      Getter for the security team
      Returns:
      security team in which the user/entity is already in the specific role
    • getUser

      public User getUser()
      Getter for the user
      Returns:
      the user who is already in the specific role
    • getVo

      public Vo getVo()
      Getter for the vo
      Returns:
      the vo in which the user/entity is already in the specific role