psdi.app.appsetup

Class MaxApps

  • All Implemented Interfaces:
    java.rmi.Remote, MaxAppsRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class MaxApps
    extends Mbo
    implements MaxAppsRemote
    Mbo object to represent MaxApps. For attributes pertaining to the app's display on a menu, see MaxMenu.

    This is a system level object.

    The key attribute for this object is App.

    The attributes in this object are as follows:

    Attribute Name Description
    App Application Name.
    Description Description of the application.
    DocEnabled Equals True when Doclinks can be maintained for the data in this app. In this case there will be a tab in the app for maintaining the doclinks.
    GroupName Non-persistent attribute. Used in the Security Groups application.
    IsJava True if this is a Java application, else False.
    KeyColumn When the MainTbName contains a one-column unique index (as it normally should), this is the name of the column in that index. For example, the Asset app maintains the Asset table, whose key column is ASSETNUM. This is used to support Bookmark and other functions.
    MainTbName The main table that is maintained via this app. For example, the Asset app maintains the Asset table. This is used to support Bookmark, Query and other functions.
    Read, Insert, Delete, Save Non-persistent attributes. Used in the Security Groups application.
    See Also:
    MaxMenu
    • Constructor Detail

      • MaxApps

        public MaxApps(MboSet ms)
                throws MXException,
                       java.rmi.RemoteException
        Construct the MaxApps object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        If owner is MaxGroup, set value for non-persistent attribute GroupName.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • toBeSaved

        public boolean toBeSaved()
                          throws java.rmi.RemoteException
        Does the object need to be saved to persistent storage ? This will also check for change of non-persistent attributes.
        Specified by:
        toBeSaved in interface MboRemote
        Overrides:
        toBeSaved in class Mbo
        Throws:
        java.rmi.RemoteException
      • enableAppForRecordLock

        public void enableAppForRecordLock()
                                    throws java.rmi.RemoteException,
                                           MXException
        Enables the current app for Edit Mode
        Throws:
        java.rmi.RemoteException
        MXException
      • disableAppForRecordLock

        public void disableAppForRecordLock()
                                     throws java.rmi.RemoteException,
                                            MXException
        Disables the current app for Edit Mode
        Throws:
        java.rmi.RemoteException
        MXException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. The following field(s) will be skipped without being copied to the newly duplicated MaxApps:
        1. app
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        If adding a new mbo, set value of "app" on appdoctype set.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • mainTableHasUniqueID

        public boolean mainTableHasUniqueID()
                                     throws java.rmi.RemoteException,
                                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicates a MAXAPPS record. Used from the Screen Designer app.
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly created MAXAPPS record.
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • copyModuleApp

        public void copyModuleApp()
                           throws MXException,
                                  java.rmi.RemoteException
        Copies over the MaxMenu entry so that the duplicated App is visible in the Go To Menu. Used from the Application Designer app.
        Specified by:
        copyModuleApp in interface MaxAppsRemote
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
        See Also:
        MaxApps.copyModuleApp()
      • addModuleApp

        public void addModuleApp()
                          throws MXException,
                                 java.rmi.RemoteException
        Add an entry in MaxMenu for the newly inserted app so that it shows up in the Go To Menu. Used from the Application Designer app.
        Specified by:
        addModuleApp in interface MaxAppsRemote
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
        See Also:
        MaxApps.addModuleApp()
      • markAllForWorkCenter

        public void markAllForWorkCenter(boolean value,
                                         java.lang.String optionName)
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • markAllForWorkCenterLoop

        public void markAllForWorkCenterLoop(MboSetRemote optionSet,
                                             boolean value,
                                             java.lang.String optionName)
                                      throws MXException,
                                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException