com.sapportals.wcm.util.acl

Interface IOwner

All Known Subinterfaces:
IAcl, IAcl4Tx, 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


Copyright 2006 SAP AG Complete Copyright Notice