to.etc.domui.util
Class AccessCalculator

java.lang.Object
  extended by to.etc.domui.util.AccessCalculator

public class AccessCalculator
extends java.lang.Object

Helps with calculating access rights to fields and classes, depending on the roles defined for the user and the access rights masks set in the metadata.

Author:
Frits Jalvingh Created on Aug 19, 2008

Constructor Summary
AccessCalculator()
           
 
Method Summary
 boolean calculate(PropertyMetaModel<?> pmm)
           
 boolean isEditable()
          Returns T if the component is to be made editable.
 boolean isViewable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessCalculator

public AccessCalculator()
Method Detail

isEditable

public boolean isEditable()
Returns T if the component is to be made editable.

Returns:

isViewable

public boolean isViewable()

calculate

public boolean calculate(PropertyMetaModel<?> pmm)