com.ibm.tivoli.maximo.miniapps.scheduler.beans

Class SKDEditConstraintsDialogBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class SKDEditConstraintsDialogBean
    extends DataBean
    Dialog bean for Edit Constrain Dialog.
    • Constructor Detail

      • SKDEditConstraintsDialogBean

        public SKDEditConstraintsDialogBean()
    • Method Detail

      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from class: DataBean
        Typically called after the DataBean gets a new MboSetRemote On the MboSetRemote it sets the app, the app defaults, user defaults If the remote is an instanceof NonPersistentMboSetRemote then setup is called on it and sets the current row to 0. If the DataBean isn't bound to a table then initialize fetches the first mbo (sets the current row to 0). If this method is overridden under most case you will want to call super.initalize at the end of the the new initialize method.
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • setconstraint

        public int setconstraint()
                          throws MXException,
                                 java.rmi.RemoteException
        Sets the new values in projects NP attribute.
        Throws:
        MXException
        java.rmi.RemoteException
      • updateActivityDependencies

        protected void updateActivityDependencies(Schedule schedule,
                                                  Activity activity,
                                                  java.lang.String propertyName,
                                                  MboRemote updatedMbo)
                                           throws java.rmi.RemoteException,
                                                  MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • saveChanges

        protected void saveChanges(Schedule schedule,
                                   MboRemote mbo,
                                   java.lang.String oldType,
                                   com.ibm.json.java.JSONObject obj)
                            throws java.rmi.RemoteException,
                                   MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • getConstraintMaximoValue

        protected java.lang.String getConstraintMaximoValue(java.lang.String contraintTypeInternalValue,
                                                            boolean internal)
        Returns maximo value from synonymdomain for a given constraint type.
        Parameters:
        contraintTypeInternalValue -
        Returns:
        Maximo internal value as String