Class WoofResourceSecurityModel

    • Constructor Detail

      • WoofResourceSecurityModel

        public WoofResourceSecurityModel()
        Default constructor.
      • WoofResourceSecurityModel

        public WoofResourceSecurityModel​(java.lang.String httpSecurityName,
                                         java.lang.String[] role,
                                         java.lang.String[] requiredRole)
        Convenience constructor.
        Parameters:
        httpSecurityName - Http security name.
        role - Role.
        requiredRole - Required role.
      • WoofResourceSecurityModel

        public WoofResourceSecurityModel​(java.lang.String httpSecurityName,
                                         java.lang.String[] role,
                                         java.lang.String[] requiredRole,
                                         int x,
                                         int y)
        Convenience constructor allowing XY initialising.
        Parameters:
        httpSecurityName - Http security name.
        role - Role.
        requiredRole - Required role.
        x - Horizontal location.
        y - Vertical location.
    • Method Detail

      • getHttpSecurityName

        public java.lang.String getHttpSecurityName()
        Returns:
        Http security name.
      • setHttpSecurityName

        public void setHttpSecurityName​(java.lang.String httpSecurityName)
        Parameters:
        httpSecurityName - Http security name.
      • getRoles

        public java.util.List<java.lang.String> getRoles()
        Returns:
        Role.
      • addRole

        public void addRole​(java.lang.String role)
        Parameters:
        role - Role.
      • removeRole

        public void removeRole​(java.lang.String role)
        Parameters:
        role - Role.
      • getRequiredRoles

        public java.util.List<java.lang.String> getRequiredRoles()
        Returns:
        Required role.
      • addRequiredRole

        public void addRequiredRole​(java.lang.String requiredRole)
        Parameters:
        requiredRole - Required role.
      • removeRequiredRole

        public void removeRequiredRole​(java.lang.String requiredRole)
        Parameters:
        requiredRole - Required role.