project35.soa.security
Class AccessRights

java.lang.Object
  extended by project35.soa.security.AccessRights
Direct Known Subclasses:
AllowAllAccessRights, DenyAllAccessRights

public class AccessRights
extends java.lang.Object


Copyright (c) 2008 Kevin Garwood for Project35. This code is licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
static java.lang.Integer EXECUTE
           
static java.lang.Integer READ
           
static java.lang.Integer WRITE
           
 
Constructor Summary
AccessRights()
           
 
Method Summary
 boolean allowExecute()
          Get the value of allowExecute.
 boolean allowRead()
          Get the value of allowRead.
 boolean allowWrite()
          Get the value of allowWrite.
 java.lang.String getReasons(java.lang.Integer accessRightType)
          Get the value of reasons.
 void setAllowExecute(boolean allowExecute)
          Set the value of allowExecute.
 void setAllowRead(boolean allowRead)
          Set the value of allowRead.
 void setAllowWrite(boolean allowWrite)
          Set the value of allowWrite.
 void setReasons(java.lang.Integer accessType, java.lang.String reasons)
          Set the value of reasons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ

public static final java.lang.Integer READ

WRITE

public static final java.lang.Integer WRITE

EXECUTE

public static final java.lang.Integer EXECUTE
Constructor Detail

AccessRights

public AccessRights()
Method Detail

allowRead

public boolean allowRead()
Get the value of allowRead.

Returns:
value of allowRead.

allowWrite

public boolean allowWrite()
Get the value of allowWrite.

Returns:
value of allowWrite.

allowExecute

public boolean allowExecute()
Get the value of allowExecute.

Returns:
value of allowExecute.

getReasons

public java.lang.String getReasons(java.lang.Integer accessRightType)
Get the value of reasons.

Returns:
value of reasons.

setAllowRead

public void setAllowRead(boolean allowRead)
Set the value of allowRead.

Parameters:
allowRead - Value to assign to allowRead.

setAllowWrite

public void setAllowWrite(boolean allowWrite)
Set the value of allowWrite.

Parameters:
allowWrite - Value to assign to allowWrite.

setAllowExecute

public void setAllowExecute(boolean allowExecute)
Set the value of allowExecute.

Parameters:
allowExecute - Value to assign to allowExecute.

setReasons

public void setReasons(java.lang.Integer accessType,
                       java.lang.String reasons)
Set the value of reasons.

Parameters:
reasons - Value to assign to reasons.