psdi.mbo

Class BasicDomain

    • Field Detail

      • lastSignature

        public java.lang.Object[] lastSignature
    • Constructor Detail

      • BasicDomain

        public BasicDomain(MboValue mbv)
        Construct passing the field to which you are listening
    • Method Detail

      • chooseActualDomainValues

        public void chooseActualDomainValues()
                                      throws MXException,
                                             java.rmi.RemoteException
        This is the method that the derived class should overwrite to set the information which will define how the validation, get list and action perform. If a domainid is associated with the field validation class, this kind of information is encouraged to set here instead of the constructor of the field validation. This method is called when the domainid is set or if the mbo is a zombie, and the siteid or orgid is different than last time when this method is called.
        Throws:
        MXException
        java.rmi.RemoteException
      • resetDomainValues

        public void resetDomainValues()
                               throws MXException,
                                      java.rmi.RemoteException
        Call the chooseActualDomainValues() method again if the domainid is set and the mbo is zombie and the siteid and orgid is different than last time chooseActualDomainValues() are called. This method should be called first thing in getList() method if getList() will return differently based on the current site and org values.
        Throws:
        MXException
        java.rmi.RemoteException
      • resetConditionValueFilter

        public void resetConditionValueFilter()
                                       throws MXException,
                                              java.rmi.RemoteException
        Reset the exclusion where clause based on the evaluation result of the domain value condition. The domain values are filtered by exclusion. Those valueids which has associated conditions and all are evaluated to false will be excluded.
        Throws:
        MXException
        java.rmi.RemoteException
      • setConditionalValWhere

        public void setConditionalValWhere(java.lang.String where)
        Set the conditional domain value where clause
        Parameters:
        where -
      • getConditionalValWhere

        public java.lang.String getConditionalValWhere()
        Get the conditional domain value where clause
        Returns:
      • getConditionResult

        public boolean[] getConditionResult()
                                     throws MXException,
                                            java.rmi.RemoteException
        Evalate all involved conditions for the domain.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setDomainId

        public void setDomainId(java.lang.String dom)
        Set the domain id. As soon as the domainid is set, chooseActualDomainValues() is set. Method chooseActualDomainValues() should be overwritten to perform any needed operation when the domainid is set. When this method is called, the siteid and orgid of the current record should have been set if it is a existing record or a new record. The new record will always have the site or org id set and won't be allowed to change after it is set. So, it will be save to assume the site and org id obtained at this time won't change for this record.
        Parameters:
        dom -
      • getDomainId

        public java.lang.String getDomainId()
        Get the domainid. It will return null if the this is not based on a predefined domain.
        Returns:
      • getDomainInfo

        public DomainInfo getDomainInfo()
        Get the DomainInfo object. It can be null if the domain id is not set.
        Returns: