Lines Matching defs:owner

42  * The initial owner Principal should be specified as an
54 * Constructs an empty list of owner.
61 * Constructs a list of owner with the specified principal as first element.
63 * @param owner the principal added to the owner list.
65 public OwnerImpl (PrincipalImpl owner){
67 ownerList.addElement(owner);
71 * Adds an owner. Only owners can modify ACL contents. The caller principal
72 * must be an owner of the ACL in order to invoke this method. That is, only
73 * an owner can add another owner. The initial owner is configured at
77 * It must be an owner of the ACL.
78 * @param owner the owner that should be added to the list of owners.
79 * @return true if successful, false if owner is already an owner.
80 * @exception NotOwnerException if the caller principal is not an owner
83 public boolean addOwner(Principal caller, Principal owner)
88 if (ownerList.contains(owner)) {
91 ownerList.addElement(owner);
97 * Deletes an owner. If this is the last owner in the ACL, an exception is raised.
99 * The caller principal must be an owner of the ACL in order to invoke this method.
101 * @param caller the principal invoking this method. It must be an owner
103 * @param owner the owner to be removed from the list of owners.
104 * @return true if successful, false if owner is already an owner.
105 * @exception NotOwnerException if the caller principal is not an owner
107 * @exception LastOwnerException if there is only one owner left, so that
108 * deleteOwner would leave the ACL owner-less.
110 public boolean deleteOwner(Principal caller, Principal owner)
116 if (!ownerList.contains(owner)){
122 ownerList.removeElement(owner);
128 * Returns true if the given principal is an owner of the ACL.
130 * @param owner the principal to be checked to determine whether or
131 * not it is an owner.
132 * @return true if the given principal is an owner of the ACL.
134 public boolean isOwner(Principal owner){
135 return ownerList.contains(owner);