com.coi.tools.os.win
Class AccessControlList.AccessControlEntry

java.lang.Object
  extended by com.coi.tools.os.win.AccessControlList.AccessControlEntry
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
AccessControlList

public static class AccessControlList.AccessControlEntry
extends java.lang.Object
implements java.lang.Cloneable

This class holds a representation of MS Windows ACEs.

Author:
Klaus Bartz

Field Summary
private  int accessAllowdMask
           
private  int accessDeniedMask
           
private  java.lang.String owner
           
 
Constructor Summary
AccessControlList.AccessControlEntry()
          Default constructor.
AccessControlList.AccessControlEntry(java.lang.String owner2, int allowed, int denied)
          Creates an ACE with the given parameter.
 
Method Summary
 java.lang.Object clone()
           
 int getAccessAllowdMask()
          Returns the accessAllowdMask.
 int getAccessDeniedMask()
          Returns the accessDeniedMask.
 java.lang.String getOwner()
          Returns the owner.
 void setAccessAllowdMask(int accessAllowdMask)
          Sets accessAllowdMask to the given value.
 void setAccessDeniedMask(int accessDeniedMask)
          Sets accessDeniedMask to the given value.
 void setOwner(java.lang.String owner)
          Sets owner to the given value.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

private java.lang.String owner

accessAllowdMask

private int accessAllowdMask

accessDeniedMask

private int accessDeniedMask
Constructor Detail

AccessControlList.AccessControlEntry

public AccessControlList.AccessControlEntry()
Default constructor.


AccessControlList.AccessControlEntry

public AccessControlList.AccessControlEntry(java.lang.String owner2,
                                            int allowed,
                                            int denied)
Creates an ACE with the given parameter.

Parameters:
owner2 - owner of the ACE
allowed - access allowed mask
denied - access denied mask
Method Detail

getOwner

public java.lang.String getOwner()
Returns the owner.

Returns:
the owner

setOwner

public void setOwner(java.lang.String owner)
Sets owner to the given value.

Parameters:
owner - The owner to set.

getAccessAllowdMask

public int getAccessAllowdMask()
Returns the accessAllowdMask.

Returns:
the accessAllowdMask

setAccessAllowdMask

public void setAccessAllowdMask(int accessAllowdMask)
Sets accessAllowdMask to the given value.

Parameters:
accessAllowdMask - The accessAllowdMask to set.

getAccessDeniedMask

public int getAccessDeniedMask()
Returns the accessDeniedMask.

Returns:
the accessDeniedMask

setAccessDeniedMask

public void setAccessDeniedMask(int accessDeniedMask)
Sets accessDeniedMask to the given value.

Parameters:
accessDeniedMask - The accessDeniedMask to set.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object