psdi.mbo

Class CrossOverDomain

    • Constructor Detail

      • CrossOverDomain

        public CrossOverDomain(MboValue mbv)
        Construct specifying the MboValue, name of object to use, where clause, Error group and Error Key
        Parameters:
        mbv -
    • Method Detail

      • setFields

        public void setFields(java.util.ArrayList fi)
      • addCrossOverField

        public void addCrossOverField(java.lang.String src,
                                      java.lang.String dest,
                                      java.lang.String srcCondition,
                                      java.lang.String destCondition,
                                      boolean copynull,
                                      boolean noOverwrite)
        Add the crossover field pairs and its crossover property
        Parameters:
        src - source attribute
        dest - destination attribute
        srcCondition - condition evaluated on source object
        destCondition - condition evaluated on destination object
        copynull - whether to copy even if the source attribute is empty
        noOverwrite - Whether to only copy when the destination attribute is empty.
      • setCrossOverFields

        public void setCrossOverFields(java.lang.String[][] fl)
        Deprecated. 
        Set the list of fields which are crossed over if the validate method works. For example, to copy priority from the asset to the assetpriority of workorder, specifiy {{"priority", "assetpriority","Y"}}
        Parameters:
        source - and destination fields
      • setSourceFields

        public void setSourceFields(java.util.Vector fl)
        Deprecated. 
        copy the vector to sourceFieldVector
        Parameters:
        fl -
      • setDestinationFields

        public void setDestinationFields(java.util.Vector fl)
        Deprecated. 
        copy the vector to destFieldVector
        Parameters:
        fl -
      • setNullAllowed

        public void setNullAllowed(java.util.Vector fl)
        Deprecated. 
        copy the vector to nullAllowedVector
        Parameters:
        fl -
      • chooseActualDomainValues

        public void chooseActualDomainValues()
                                      throws MXException,
                                             java.rmi.RemoteException
        Set the relationship, the listcriteria, error message bundle and key, and the resource and destination fiels based on the current records' site org level, whether it is in search mode and if site or org specific domain values are specified for this domain. It will choose the maxtabledomain and crossoverdomain records specific for this site or org, or further up if no specific value is set. If it is in search mode, and the site or org is not specified, the very first list where will be used for the list.
        Overrides:
        chooseActualDomainValues in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException