Package edm.edom3

Interface EDMAccessManager

    • Method Detail

      • getObjectOwner

        EDMUser getObjectOwner()
                        throws EdmiException
        Gets the owner. The owner has privilegies to modify the access on the object the access apply to
        Returns:
        The owner of this access object
        Throws:
        EdmiException - if the method fails
      • setObjectOwner

        void setObjectOwner​(EDMUser owner)
                     throws EdmiException
        Change access owner
        Parameters:
        owner - New owner
        Throws:
        EdmiException - if the method fails
      • getGroupOwner

        EDMGroup getGroupOwner()
                        throws EdmiException
        Gets the owner group. The group owner has privilegies to modify the access on the object the access apply to
        Returns:
        The grousp owner of this access object
        Throws:
        EdmiException - if the method fails
      • setGroupOwner

        void setGroupOwner​(EDMGroup owner)
                    throws EdmiException
        Change access group owner
        Parameters:
        owner - New owner
        Throws:
        EdmiException - if the method fails
      • removeAdministrator

        void removeAdministrator​(EDMUserOrGroup admin)
                          throws EdmiException
        Remove an administrator
        Parameters:
        admin - New administrator
        Throws:
        EdmiException - if the method fails
      • getAllAccessFor

        EDMAccess[] getAllAccessFor()
                             throws EdmiException
        Get all dedicated access
        Returns:
        a list of accesses for users/groups, null if none assigned
        Throws:
        EdmiException - if the method fails
      • getAccessFor

        EDMAccess getAccessFor​(EDMUserOrGroup userOrGroup)
                        throws EdmiException
        Retrieve dedicated access for a user
        Parameters:
        userOrGroup - user or group to check dedicated access for
        Returns:
        access object for the given user, null if none set
        Throws:
        EdmiException - if the method fails
      • setAccessFor

        EDMAccess setAccessFor​(EDMUserOrGroup userOrGroup,
                               long rights)
                        throws EdmiException
        Set a dedicated access
        Parameters:
        userOrGroup - the user or group to grant special access to
        rights - access rights to grant
        Returns:
        the created or modified access
        Throws:
        EdmiException - if the method fails
      • removeAccessFor

        void removeAccessFor​(EDMUserOrGroup userOrGroup)
                      throws EdmiException
        Remove a dedicated access
        Parameters:
        userOrGroup - the user or group to remove special access from
        Throws:
        EdmiException - if the method fails
      • getRoleAccess

        EDMAccess getRoleAccess​(long accessRole)
                         throws EdmiException
        Retrieve access for PUBLIC, OWNER or GROUP
        Parameters:
        accessRole - ROLE_PUBLIC_ACCESS, ROLE_OWNER_GROUP or ROLE_OWNER_USER
        Returns:
        access object for the given role
        Throws:
        EdmiException - if the method fails
      • getRoleAccessRights

        long getRoleAccessRights​(long accessRole)
                          throws EdmiException
        Retrieve access rights bitmask for PUBLIC, OWNER or GROUP
        Parameters:
        accessRole - ROLE_PUBLIC_ACCESS, ROLE_OWNER_GROUP or ROLE_OWNER_USER
        Returns:
        access rights for the given role
        Throws:
        EdmiException - if the method fails
      • setRoleAccessRights

        void setRoleAccessRights​(long accessRole,
                                 long rights)
                          throws EdmiException
        set access for PUBLIC, OWNER or GROUP
        Parameters:
        accessRole - ROLE_PUBLIC_ACCESS, ROLE_OWNER_GROUP or ROLE_OWNER_USER
        rights - access rights to grant
        Throws:
        EdmiException - if the method fails
      • getEffectiveAccess

        EDMAccess getEffectiveAccess​(EDMUserOrGroup userOrGroup)
                              throws EdmiException
        Retrieve effective access for a user (superuser only?)
        Parameters:
        userOrGroup - user or group to check access for, null = myself
        Returns:
        access object for the given role
        Throws:
        EdmiException - if the method fails
      • getMyAccess

        EDMAccess getMyAccess()
                       throws EdmiException
        Retrieve effective access
        Returns:
        access object for the calling context
        Throws:
        EdmiException - if the method fails