JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.aspects.user
Class Profile

java.lang.Object
  |
  +--org.objectweb.jac.aspects.user.Profile

public class Profile
extends Object


Constructor Summary
Profile()
           
 
Method Summary
 void addAddable(String resourceExpr)
           
 void addAddRule(Rule rule)
           
 void addCreatable(String resourceExpr)
           
 void addCreateRule(Rule rule)
           
 void addReadable(String resourceExpr)
           
 void addReadRule(Rule rule)
           
 void addRemovable(String resourceExpr)
           
 void addRemoveRule(Rule rule)
           
 void addUnaddable(String resourceExpr)
           
 void addUnreadable(String resourceExpr)
           
 void addUnremovable(String resourceExpr)
           
 void addUnwritable(String resourceExpr)
           
 void addWritable(String resourceExpr)
           
 void addWriteRule(Rule rule)
           
 void clear()
          Clear all rules
protected  Collection getAddRules()
           
protected  Collection getCreateRules()
           
 String getName()
          Get the value of name.
 Profile getParent()
           
 Stack getProfileStack()
           
protected  Collection getReadRules()
           
protected  Collection getRemoveRules()
           
protected  Collection getWriteRules()
           
protected  void invalidateCache()
           
static boolean isAddable(Collection profiles, MetaItem item)
           
 boolean isAddable(MetaItem item)
           
static boolean isCreatable(Collection profiles, MetaItem item)
           
 boolean isCreatable(MetaItem item)
           
 boolean isNew()
           
static boolean isReadable(Collection profiles, MetaItem item)
           
 boolean isReadable(MetaItem item)
           
static boolean isRemovable(Collection profiles, MetaItem item)
           
 boolean isRemovable(MetaItem item)
           
static boolean isWritable(Collection profiles, MetaItem item)
           
 boolean isWritable(MetaItem item)
           
 void removeAddRule(Rule rule)
           
 void removeCreateRule(Rule rule)
           
 void removeReadRule(Rule rule)
           
 void removeRemoveRule(Rule rule)
           
 void removeWriteRule(Rule rule)
           
 void setIsNew(boolean isNew)
           
 void setName(String v)
          Set the value of name.
 void setParent(Profile parent)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Profile

public Profile()
Method Detail

getName

public String getName()
Get the value of name.

Returns:
value of name.

setName

public void setName(String v)
Set the value of name.

Parameters:
v - Value to assign to name.

setParent

public void setParent(Profile parent)

getParent

public Profile getParent()

setIsNew

public void setIsNew(boolean isNew)

isNew

public boolean isNew()

clear

public void clear()
Clear all rules


getReadRules

protected Collection getReadRules()

addReadRule

public void addReadRule(Rule rule)

removeReadRule

public void removeReadRule(Rule rule)

getWriteRules

protected Collection getWriteRules()

addWriteRule

public void addWriteRule(Rule rule)

removeWriteRule

public void removeWriteRule(Rule rule)

getAddRules

protected Collection getAddRules()

addAddRule

public void addAddRule(Rule rule)

removeAddRule

public void removeAddRule(Rule rule)

getCreateRules

protected Collection getCreateRules()

addCreateRule

public void addCreateRule(Rule rule)

removeCreateRule

public void removeCreateRule(Rule rule)

getRemoveRules

protected Collection getRemoveRules()

addRemoveRule

public void addRemoveRule(Rule rule)

removeRemoveRule

public void removeRemoveRule(Rule rule)

addReadable

public void addReadable(String resourceExpr)

addUnreadable

public void addUnreadable(String resourceExpr)

addWritable

public void addWritable(String resourceExpr)

addUnwritable

public void addUnwritable(String resourceExpr)

addAddable

public void addAddable(String resourceExpr)

addCreatable

public void addCreatable(String resourceExpr)

addUnaddable

public void addUnaddable(String resourceExpr)

addRemovable

public void addRemovable(String resourceExpr)

addUnremovable

public void addUnremovable(String resourceExpr)

getProfileStack

public Stack getProfileStack()

isReadable

public boolean isReadable(MetaItem item)

isWritable

public boolean isWritable(MetaItem item)

isAddable

public boolean isAddable(MetaItem item)

isCreatable

public boolean isCreatable(MetaItem item)

isRemovable

public boolean isRemovable(MetaItem item)

isReadable

public static boolean isReadable(Collection profiles,
                                 MetaItem item)

isWritable

public static boolean isWritable(Collection profiles,
                                 MetaItem item)

isAddable

public static boolean isAddable(Collection profiles,
                                MetaItem item)

isCreatable

public static boolean isCreatable(Collection profiles,
                                  MetaItem item)

isRemovable

public static boolean isRemovable(Collection profiles,
                                  MetaItem item)

invalidateCache

protected void invalidateCache()

toString

public String toString()
Overrides:
toString in class Object

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli