EDMAccess

edm.edom3

Interface EDMAccess

  • All Superinterfaces:EDMContextDependent



    public interface EDMAccess
    extends EDMContextDependent

    This interface represents access rights to an object for a specific role.

    Author:aet

    • Method Summary

      All Methods Instance Methods Abstract Methods 

      Modifier and TypeMethod and Description
      EDMAccessManagergetAccessManager()
      Get the access manager for this access
      longgetAccessRights()
      Get access rights bitmask for this access
      longgetRole()
      Get the role for this access
      EDMUserOrGroupgetUserOrGroup()
      return the user or group for this access
      booleanisAccessFor()
      Check if this access is a special granted access
      voidsetAccessRights(long rights)
      Set access rights bitmask for this access
    • Method Detail

      • getAccessManager

        EDMAccessManager getAccessManager()
                                   throws EdmiException

        Get the access manager for this access

        Returns:access manager objectThrows:EdmiException - If the method fails

      • isAccessFor

        boolean isAccessFor()
                     throws EdmiException

        Check if this access is a special granted access

        Returns:true if role is ROLE_ACCESS_FOR_USER or ROLE_ACCESS_FOR_GROUP.Throws:EdmiException - If the method fails

      • getRole

        long getRole()
              throws EdmiException

        Get the role for this access

        Returns:role enumeration codeThrows:EdmiException - If the method failsSee Also:EDMConstants.AccessCodes

      • getUserOrGroup

        EDMUserOrGroup getUserOrGroup()
                               throws EdmiException

        return the user or group for this access

        Returns:user/group if dedicated, null of no dedicated (role != ACCESS_FOR_xxx)Throws:EdmiException - If the method fails

      • getAccessRights

        long getAccessRights()
                      throws EdmiException

        Get access rights bitmask for this access

        Returns:access rights bitmask for this accessThrows:EdmiException - If the method failsSee Also:EDMConstants.AccessCodes

      • setAccessRights

        void setAccessRights(long rights)
                      throws EdmiException

        Set access rights bitmask for this access

        Parameters:rights - Acces rights bitmaskThrows:EdmiException - if the method failsSee Also:EDMConstants.AccessCodes