Owner.addOwner
Interface Overview | Interface Members |
This Package |
All Packages
public abstract boolean addOwner( Principal caller,
Principal owner ) throws NotOwnerException
Parameters
- caller
- the principal invoking this method. It must be an owner
of the ACL.
- owner
- the owner that should be added to the list of owners.
Returns
true if successful, false if owner is already an owner.
Description
Adds an owner. Only owners can modify ACL contents. The caller
principal must be an owner of the ACL in order to invoke this method.
That is, only an owner can add another owner. The initial owner is
configured at ACL construction time.
Exceptions
NotOwnerException
if the caller principal is not an owner
of the ACL.