Java AFS API v1.4

org.openafs.jafs
Class ACL

java.lang.Object
  |
  +--org.openafs.jafs.ACL
All Implemented Interfaces:
Comparable, Serializable

public class ACL
extends Object
implements Serializable, Comparable

An abstract representation of AFS file and directory pathnames. This class is an extension of the standard Java File class with file-based manipulation methods overridden by integrated AFS native methods.

Version:
2.0, 04/18/2001 - Completely revised class for efficiency.
See Also:
Serialized Form

Nested Class Summary
static class ACL.Entry
          AFS ACL Entry Class.
 
Constructor Summary
ACL(String path)
           
 
Method Summary
 void addNegativeEntry(ACL.Entry entry)
           
 void addPositiveEntry(ACL.Entry entry)
           
 int compareTo(ACL acl)
          Compares two ACL objects respective to their paths and does not factor any other attribute.
 int compareTo(Object obj)
          Comparable interface method.
 boolean equals(ACL acl)
          Tests whether two ACL objects are equal, based on their paths and permission bits.
 void flush()
           
 int getEntryCount()
           
 ACL.Entry[] getNegativeEntries()
           
 String getPath()
           
 ACL.Entry[] getPositiveEntries()
           
 void setNegativeEntries(ACL.Entry[] entries)
           
 void setPositiveEntries(ACL.Entry[] entries)
           
 String toString()
          Returns a String representation of this ACL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ACL

public ACL(String path)
    throws AFSException
Method Detail

getEntryCount

public int getEntryCount()

getPath

public String getPath()

getPositiveEntries

public ACL.Entry[] getPositiveEntries()

addPositiveEntry

public void addPositiveEntry(ACL.Entry entry)
                      throws AFSException
AFSException

setPositiveEntries

public void setPositiveEntries(ACL.Entry[] entries)
                        throws AFSException
AFSException

getNegativeEntries

public ACL.Entry[] getNegativeEntries()

addNegativeEntry

public void addNegativeEntry(ACL.Entry entry)
                      throws AFSException
AFSException

setNegativeEntries

public void setNegativeEntries(ACL.Entry[] entries)
                        throws AFSException
AFSException

flush

public void flush()
           throws AFSException
AFSException

compareTo

public int compareTo(ACL acl)
Compares two ACL objects respective to their paths and does not factor any other attribute. Alphabetic case is significant in comparing names.

Parameters:
acl - The ACL object to be compared to this ACL instance
Returns:
Zero if the argument is equal to this ACL's path, a value less than zero if this ACL's path is lexicographically less than the argument, or a value greater than zero if this ACL's path is lexicographically greater than the argument

compareTo

public int compareTo(Object obj)
Comparable interface method.

Specified by:
compareTo in interface Comparable
See Also:
compareTo(ACL)

equals

public boolean equals(ACL acl)
Tests whether two ACL objects are equal, based on their paths and permission bits.

Parameters:
acl - the ACL to test
Returns:
whether the specifed ACL is the same as this ACL

toString

public String toString()
Returns a String representation of this ACL

Overrides:
toString in class Object
Returns:
a String representation of this ACL

Java AFS API (jafs) for OpenAFS

Copyright (c) 2001-2002 International Business Machines Corp.
All rights reserved.
See copyright statement.