Class Permission

java.lang.Object
com.i2group.disco.security.spi.Permission
All Implemented Interfaces:
IPermission

public class Permission extends Object implements IPermission
An implementation of IPermission.
Since:
13.2
  • Method Details

    • create

      public static IPermission create(String dimensionValueId, IPermission.AccessLevel level)
      Creates and returns an IPermission object with the specified dimension value and access level.
      Parameters:
      dimensionValueId - The identifier of the dimension value for the permission.
      level - The access level to associate with the specified dimension value.
      Returns:
      See above.
    • getDimensionValueId

      public String getDimensionValueId()
      Description copied from interface: IPermission
      Gets the identifier of the dimension value in the permission.
      Specified by:
      getDimensionValueId in interface IPermission
      Returns:
      See above.
    • getLevel

      public IPermission.AccessLevel getLevel()
      Description copied from interface: IPermission
      Gets the access level associated with the identified dimension value.
      Specified by:
      getLevel in interface IPermission
      Returns:
      See above.