Class Grants.Grant

  • All Implemented Interfaces:
    BsonParcelable
    Enclosing class:
    Grants

    public static final class Grants.Grant
    extends java.lang.Object
    implements BsonParcelable
    System grant representation.
    Author:
    javaito
    • Method Detail

      • getPermissionId

        public java.lang.String getPermissionId()
        Returns the id of the grant.
        Returns:
        Id of the grant.
      • getTargetClassName

        public java.lang.String getTargetClassName()
        Returns the target class name.
        Returns:
        Target class name.
      • getGrantName

        public java.lang.String getGrantName()
        Returns the grant name.
        Returns:
        Grant name.
      • getDescription

        public java.lang.String getDescription()
        Returns the description of the grant.
        Returns:
        Grant description.
      • getTags

        public java.util.List<java.lang.String> getTags()
        Returns the lost of tags of the grant.
        Returns:
        List of tags.
      • toString

        public java.lang.String toString()
        Returns the string representation of the grant instance.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String representation of the grant instance.
      • equals

        public boolean equals​(java.lang.Object obj)
        Verify if the instance if equals to other grant instance.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - Objet to compare.
        Returns:
        If the object to compare is instance of the grant call the super implementation of the method, but if the object to compare is instance of string then compare the object with the id of the grant.