Interface PermissionEvent

  • All Superinterfaces:
    DataEvent

    public interface PermissionEvent
    extends DataEvent

    Provides information about a change to permission data.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean deleteAllKeys()
      Returns the boolean that indicates whether all permission keys for this subject have been deleted.
      boolean deleteKey()
      Returns the boolean that indicates whether the permission key within this update has been deleted.
      java.util.Map<java.lang.String,​java.lang.String> getFields()
      Returns the collection of fields relating to this PermissionEvent.
      java.lang.String getKey()
      Returns the permission key relating to this event.
    • Method Detail

      • getFields

        java.util.Map<java.lang.String,​java.lang.String> getFields()

        Returns the collection of fields relating to this PermissionEvent.

        For example, if this event is not an image, the fields are the ones that have been updated.

        Returns:
        A collection of name-value pairs.
      • getKey

        java.lang.String getKey()

        Returns the permission key relating to this event.

        Returns:
        The value of the permission key.
      • deleteKey

        boolean deleteKey()

        Returns the boolean that indicates whether the permission key within this update has been deleted.

        Returns:
        Whether the specified key should be deleted from your cache.
      • deleteAllKeys

        boolean deleteAllKeys()

        Returns the boolean that indicates whether all permission keys for this subject have been deleted.

        Returns:
        If true, all permission data for this subject should be removed from your cache.