AFS
view release on metacpan or search on metacpan
pod/v2/afsperlacl.pod view on Meta::CPAN
which file should be used should PATH be a symbolic link. If FOLLOW be
set to 1, then the symbolic link is followed to its target. If FOLLOW
is set to 0, then the method applies to the symbolic link itself. If
not specified FOLLOW defaults to 1.
=head1 COMPATIBILITY
B<This release does NOT support any features and interfaces
from version 1.>
=head1 METHODS
=over 4
=item B<CONSTRUCTOR>
=item S< >
=item B<$acl = AFS::ACL-E<gt>new([\%POS [, \%NEG]]);>
Creates a new object of the class AFS::ACL. The constructor takes two
optional arguments. C<%POS> and C<%NEG> are lists of positive and
negative ACL entries given in the form of user-rights pairs, just like a
hash table.
=item B<COPY CONSTRUCTOR>
=item S< >
=item B<$new_acl = $acl-E<gt>copy;>
Returns a copy of an existing ACL object.
=item B<CLASS METHODS>
=item S< >
=item B<$acl = AFS::ACL-E<gt>retrieve(PATH [, FOLLOW]);>
Retrieves the ACL list for the given PATH and stores it in the object $acl.
=item B<$ok = AFS::ACL-E<gt>copyacl(FROMDIR, TODIR [, FOLLOW]);>
Copies the ACL list from a source directory FROMDIR to the specified destination
directory TODIR. The source directory''s ACL is unchanged.
=item B<$ok = AFS::ACL-E<gt>cleanacl(PATH [, FOLLOW]);>
Removes from the ACL list of the specified PATH any entry that
refers to a user or group that no longer has a Protection Database entry.
=item B<$crights = AFS::ACL-E<gt>crights(RIGHTS);>
Canonicalizes the RIGHTS string. Duplicate rights will be removed. It recognizes
the following special strings:
read => rl
write => rlidwk
all => rlidwka
mail => lik
=item B<$flags = AFS::ACL-E<gt>ascii2rights(RIGHTS);>
Converts RIGHTS as expressed in a character string to its internal value
(an integer with the appropriate bits set). Returns -1 if RIGHTS are
not valid (rlidwka, read, write, all, none) or returns the internal
value (int32 with bits set).
=item B<$rights = AFS::ACL-E<gt>rights2ascii(FLAGS);>
Converts the internal value FLAGS to its corresponding character string.
=item B<ATTRIBUTES ACCESS>
=item S< >
=item B<$rights = $acl-E<gt>get_rights(USER);>
=item B<$nrights = $acl-E<gt>nget_rights(USER);>
Returns the access rights for the given USER in the positive(-E<gt>get_rights) or
negative(-E<gt>nget_rights) ACL list.
=item B<$acl-E<gt>set(USER, RIGHTS);>
=item B<$acl-E<gt>nset(USER, RIGHTS);>
Adds the given USER and its access RIGHTS to the positive(-E<gt>set) or
negative(-E<gt>nset) ACL list.
=item B<$acl-E<gt>remove(USER);>
=item B<$acl-E<gt>nremove(USER);>
Removes the given USER and its access rights from the positive(-E<gt>remove) or
negative(-E<gt>nremove) ACL list.
=item B<$acl-E<gt>empty;>
Removes all users and their access rights from the positive and negative ACL list.
=item B<$acl-E<gt>clear;>
=item B<$acl-E<gt>nclear;>
Removes all users and their access rights from the positive(-E<gt>clear) or
negative(-E<gt>nclear) ACL list.
=item B<@users = $acl-E<gt>get_users;>
=item B<@nusers = $acl-E<gt>nget_users;>
Returns users from the positive(-E<gt>get_users) or negative(-E<gt>nget_users)
ACL list.
=item B<$pos = $acl-E<gt>length;>
=item B<$npos = $acl-E<gt>nlength;>
Returns the number of users in the positive(-E<gt>length)
or negative(-E<gt>nlength) ACL list.
( run in 0.826 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )