psdi.mbo

Class DataRestriction

  • All Implemented Interfaces:
    java.io.Serializable


    public class DataRestriction
    extends CachedObjectPointer
    Representation of a data restriction. The object doesn't contain the information of which restriction this is for, including app, object, attr, or group information. It only contains the information about the restriction itself. The object is constructed and stored in the data restriction cache.
    See Also:
    Serialized Form
    • Constructor Detail

      • DataRestriction

        public DataRestriction(java.lang.String iD,
                               java.lang.String internalTypeStr,
                               java.lang.String internalLevelStr,
                               java.lang.String condition,
                               boolean reEval,
                               int tenantId,
                               long uniqueId)
        Constructor
    • Method Detail

      • hasCondition

        public boolean hasCondition()
        Is there condition for this restriction
        Returns:
      • getCondition

        public MaxCondition getCondition()
        Get the condition of the restriction. If there is no condition for this restriction, a AlwaysTrue condition will be returned.
        Returns:
        MaxCondition object
      • getId

        public java.lang.String getId()
      • getConditionNum

        public java.lang.String getConditionNum()
      • reEvaluate

        public boolean reEvaluate()
      • isUnconditional

        public boolean isUnconditional()
        Whether the restriction applies unconditially. It returns true if there is no condition, or condition always evaluate to true
        Returns:
      • getTypedReference

        public DataRestrictionBase getTypedReference()
        Get reference to actual info object
        Returns:
        actual info object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object