SAP NetWeaver '04

com.sapportals.wcm.util.acl
Interface IOwner

[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
All Known Subinterfaces:
IAcl, IAclRaw

public interface IOwner

An IOwner holds a list of principals that are the owners of an ACL.


Method Summary
 boolean addOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal caller, com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
          add a new owner to the list
 IUMPrincipalList getOwners()
          get a list of the owners of the ACL
 boolean isAuthorized(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
          check whether a principal is an owner or a member of some owner group/role of the ACL
 boolean isOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
          check whether a principal is part of the owner list of the ACL
 boolean removeOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal caller, com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
          remove an owner from the list
 

Method Detail

addOwner

public boolean addOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
                        com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
                 throws AclPersistenceException,
                        NotAuthorizedException
add a new owner to the list
Parameters:
caller - the caller must be an owner of the ACL
principal - the new owner
Returns:
true iff the owner was added successfully
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred
NotAuthorizedException - the caller is not an owner

removeOwner

public boolean removeOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal caller,
                           com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
                    throws AclPersistenceException,
                           NotAuthorizedException,
                           LastOwnerException
remove an owner from the list
Parameters:
caller - the caller must be an owner of the ACL
owner - the owner
Returns:
true iff the owner was removed successfully
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred
NotAuthorizedException - the caller is not an owner
LastOwnerException - attempt to remove the last owner of the ACL (which is forbidden)

isOwner

public boolean isOwner(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
                throws AclPersistenceException
check whether a principal is part of the owner list of the ACL
Parameters:
principal - the principal
Returns:
true iff the principal is part of the owner list of the ACL
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

isAuthorized

public boolean isAuthorized(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
                     throws AclPersistenceException
check whether a principal is an owner or a member of some owner group/role of the ACL
Parameters:
principal - the principal
Returns:
true iff the principal an owner or a member of some owner group of the ACL
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

getOwners

public IUMPrincipalList getOwners()
                           throws AclPersistenceException
get a list of the owners of the ACL
Returns:
the list of the owners of the ACL
Throws:
AclPersistenceException - a problem with the storage where the ACLs are persisted occurred

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.