Class ModelPermission

    • Method Detail

      • equals

        public boolean equals​(Object other)
        Method equals.
        Overrides:
        equals in class Object
        Parameters:
        other -
        Returns:
        boolean
      • getId

        public String getId()
        Get the id field.
        Returns:
        String
      • getName

        public String getName()
        Get the name field.
        Returns:
        String
      • getOperation

        public String getOperation()
        Get the id of the operation for this permission.
        Returns:
        String
      • getResource

        public String getResource()
        Get the id of the resource for this permission, can accept ${resource} for templates.
        Returns:
        String
      • isPermanent

        public boolean isPermanent()
        Get this permission should persist even if referring roles are removed.
        Returns:
        boolean
      • setDescription

        public void setDescription​(String description)
        Set the description field.
        Parameters:
        description -
      • setId

        public void setId​(String id)
        Set the id field.
        Parameters:
        id -
      • setName

        public void setName​(String name)
        Set the name field.
        Parameters:
        name -
      • setOperation

        public void setOperation​(String operation)
        Set the id of the operation for this permission.
        Parameters:
        operation -
      • setPermanent

        public void setPermanent​(boolean permanent)
        Set this permission should persist even if referring roles are removed.
        Parameters:
        permanent -
      • setResource

        public void setResource​(String resource)
        Set the id of the resource for this permission, can accept ${resource} for templates.
        Parameters:
        resource -