com.soebes.subversion.sapm
Class Access

java.lang.Object
  extended by com.soebes.subversion.sapm.Access

public class Access
extends Object

This represents the access level plus the user/group for which this permission should be defined.

Author:
Karl Heinz Marbaise

Field Summary
private  AccessLevel level
           
private  boolean negativeRule
           
private  IPrincipal principal
           
 
Constructor Summary
Access()
           
Access(IPrincipal principal, AccessLevel level)
          Create a new instance with the given parameters.
Access(IPrincipal principal, AccessLevel level, boolean negativeRule)
           
 
Method Summary
 AccessLevel getLevel()
           
 IPrincipal getPrincipal()
           
 boolean isNegativeRule()
           
 void setLevel(AccessLevel level)
           
 void setNegativeRule(boolean negativeRule)
           
 void setPrincipal(IPrincipal principal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

principal

private IPrincipal principal

level

private AccessLevel level

negativeRule

private boolean negativeRule
Constructor Detail

Access

public Access()

Access

public Access(IPrincipal principal,
              AccessLevel level)
Create a new instance with the given parameters.

Parameters:
principal - Either a User or a Group.
level - The level for the access.

Access

public Access(IPrincipal principal,
              AccessLevel level,
              boolean negativeRule)
Method Detail

getPrincipal

public IPrincipal getPrincipal()

setPrincipal

public void setPrincipal(IPrincipal principal)

getLevel

public AccessLevel getLevel()

setLevel

public void setLevel(AccessLevel level)

setNegativeRule

public void setNegativeRule(boolean negativeRule)

isNegativeRule

public boolean isNegativeRule()


Copyright © 2010-2011 SoftwareEntwicklung Beratung Schulung. All Rights Reserved.