Content Repository : content_permission
Permissions can be set to allow certain users certain things. - They can be compared with the Unix filesystem permission: read, write ...
Determine if the user may grant a certain permission to another user. The permission may only be granted if the user has the permission himself and posesses the cm_perm access, or if the user posesses the cm_perm_admin access.
| Author: | Karl Goldstein | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns: | 't' if the donation is possible, 'f' otherwise | |||||||||
| Parameters: | ||||||||||
|
||||||||||
| Declaration: | ||||||||||
function has_grant_authority (
object_id in acs_objects.object_id%TYPE,
holder_id in parties.party_id%TYPE,
privilege in acs_privileges.privilege%TYPE
) return varchar2;
| ||||||||||
| See Also: | content_permission.grant_permission, content_permission.is_has_revoke_authority, acs_permission.grant_permission | |||||||||
Determine if the user may take a certain permission away from another user. The permission may only be revoked if the user has the permission himself and posesses the cm_perm access, while the other user does not, or if the user posesses the cm_perm_admin access.
| Author: | Karl Goldstein | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns: | 't' if it is possible to revoke the privilege, 'f' otherwise | ||||||||||||
| Parameters: | |||||||||||||
|
|||||||||||||
| Declaration: | |||||||||||||
function has_revoke_authority (
object_id in acs_objects.object_id%TYPE,
holder_id in parties.party_id%TYPE,
privilege in acs_privileges.privilege%TYPE,
revokee_id in parties.party_id%TYPE
) return varchar2;
| |||||||||||||
| See Also: | content_permission.has_grant_authority, content_permission.revoke_permission, acs_permission.revoke_permission | ||||||||||||
Determine if the user has the specified permission on the specified object. Does NOT check objects recursively: that is, if the user has the permission on the parent object, he does not automatically gain the permission on all the child objects.
| Author: | Karl Goldstein | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Returns: | 't' if the user has the specified permission on the object, 'f' otherwise | |||||||||
| Parameters: | ||||||||||
|
||||||||||
| Declaration: | ||||||||||
function permission_p (
object_id in acs_objects.object_id%TYPE,
holder_id in parties.party_id%TYPE,
privilege in acs_privileges.privilege%TYPE
) return varchar2;
| ||||||||||
| See Also: | content_permission.grant_permission, content_permission.revoke_permission, acs_permission.permission_p | |||||||||
This is a helper function for content_permission.grant_permission and should not be called individually.
Grants a permission and revokes all descendants of the permission, since they are no longer relevant.
| Author: | Karl Goldstein | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Parameters: | ||||||||||
|
||||||||||
| Declaration: | ||||||||||
procedure grant_permission_h (
object_id in acs_objects.object_id%TYPE,
grantee_id in parties.party_id%TYPE,
privilege in acs_privileges.privilege%TYPE
);
| ||||||||||
| See Also: | content_permission.grant_permission | |||||||||
This is a helper function for content_permission.grant_permission and should not be called individually.
Grants a permission and revokes all descendants of the permission, since they are no longer relevant.
| Author: | Karl Goldstein | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Parameters: | ||||||||||
|
||||||||||
| Declaration: | ||||||||||
procedure grant_permission_h (
object_id in acs_objects.object_id%TYPE,
grantee_id in parties.party_id%TYPE,
privilege in acs_privileges.privilege%TYPE
);
| ||||||||||
| See Also: | content_permission.grant_permission | |||||||||
Make the child object inherit all of the permissions of the parent object. Typically, this function is called whenever a new object is created under a given parent
| Author: | Karl Goldstein | ||||||
|---|---|---|---|---|---|---|---|
| Parameters: | |||||||
|
|||||||
| Declaration: | |||||||
procedure inherit_permissions (
parent_object_id in acs_objects.object_id%TYPE,
child_object_id in acs_objects.object_id%TYPE,
child_creator_id in parties.party_id%TYPE default null
);
| |||||||
| See Also: | content_permission.grant, acs_permission.grant_permission | ||||||
This is a helper function for content_permission.revoke_permission and should not be called individually.
Revokes a permission but grants all child permissions to the holder, to ensure that the permission is not permanently lost
| Author: | Karl Goldstein | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Parameters: | ||||||||||
|
||||||||||
| Declaration: | ||||||||||
procedure revoke_permission_h (
object_id in acs_objects.object_id%TYPE,
revokee_id in parties.party_id%TYPE,
privilege in acs_privileges.privilege%TYPE
);
| ||||||||||
| See Also: | content_permission.revoke_permission | |||||||||
This is a helper function for content_permission.revoke_permission and should not be called individually.
Revokes a permission but grants all child permissions to the holder, to ensure that the permission is not permanently lost
| Author: | Karl Goldstein | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Parameters: | ||||||||||
|
||||||||||
| Declaration: | ||||||||||
procedure revoke_permission_h (
object_id in acs_objects.object_id%TYPE,
revokee_id in parties.party_id%TYPE,
privilege in acs_privileges.privilege%TYPE
);
| ||||||||||
| See Also: | content_permission.revoke_permission | |||||||||
Last Modified: $Id: permission.html,v 1.1.1.1 2001/03/13 22:59:26 ben Exp $