com.sapportals.wcm.repository.security

Interface IResourceAcl4Tx

All Superinterfaces:
IResourceAcl
All Known Subinterfaces:
IResourceAclRaw

public interface IResourceAcl4Tx
extends IResourceAcl

An IResourceAcl4Tx extends the IResourceAclRaw by a method set(), which allows to (re)set the entries and the owners of an ACL in one transaction.


Method Summary
 boolean set(IResourceAclEntryList entries, IUMPrincipalList owners)
          Deprecated. As of NetWeaver 7.1, replaced by set(IResourceAclEntryList, java.util.List)
 boolean set(IResourceAclEntryList entries, List owners)
          (re)set the entries and owners for the ACL.
 
Methods inherited from interface com.sapportals.wcm.repository.security.IResourceAcl
addEntry, addOwner, addOwner, checkPermission, checkPermission, getEntries, getEntries, getEntries, getLockingUser, getLockingUserUME, getOwners, getOwnersUME, getResource, isAuthorized, isAuthorized, isLocked, isOwner, isOwner, isReadOnly, isUpToDate, lock, removeEntry, removeOwner, removeOwner, unlock
 

Method Detail

set

boolean set(IResourceAclEntryList entries,
            IUMPrincipalList owners)
            throws AclPersistenceException,
                   InvalidClassException,
                   NotAuthorizedException,
                   AlreadyAssignedToAclException,
                   PermissionNotSupportedException,
                   ResourceException
Deprecated. As of NetWeaver 7.1, replaced by set(IResourceAclEntryList, java.util.List)

(re)set the entries and owners for the ACL.

Parameters:
entries - the list of ACEs for this ACL.
owners - the list of IUMPrincipals which are owners of this ACL.
Returns:
true if the ACL was (re)set successfully.
Throws:
AclPersistenceException - a problem occured within the ACL storage.
InvalidClassException - if at least one of the ACEs was created by a foreign IResourceAclManager.
NotAuthorizedException - the user in the resource context is not an owner of the ACL or a system user able to change the ACL.
AlreadyAssignedToAclException - at least one of the ACEs is already assigned to another ACL.
PermissionNotSupportedException - at least the permission of one ACE is not supported for the object type of the ACL's resource.
ResourceException - general failure (not covered by the other exceptions).

set

boolean set(IResourceAclEntryList entries,
            List owners)
            throws AclPersistenceException,
                   InvalidClassException,
                   NotAuthorizedException,
                   AlreadyAssignedToAclException,
                   PermissionNotSupportedException,
                   ResourceException
(re)set the entries and owners for the ACL.

Parameters:
entries - the list of ACEs for this ACL.
owners - the list of IPrincipals which are owners of this ACL.
Returns:
true if the ACL was (re)set successfully.
Throws:
AclPersistenceException - a problem occured within the ACL storage.
InvalidClassException - if at least one of the ACEs was created by a foreign IResourceAclManager.
NotAuthorizedException - the user in the resource context is not an owner of the ACL or a system user able to change the ACL.
AlreadyAssignedToAclException - at least one of the ACEs is already assigned to another ACL.
PermissionNotSupportedException - at least the permission of one ACE is not supported for the object type of the ACL's resource.
ResourceException - general failure (not covered by the other exceptions).
Since:
NetWeaver 7.1
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2012 SAP AG Complete Copyright Notice