com.ibm.tivoli.maximo.workcenter.app

Class WorkCenterTemplate

  • java.lang.Object
    • psdi.mbo.Mbo
      • com.ibm.tivoli.maximo.workcenter.app.WorkCenterTemplate
    • Constructor Detail

      • WorkCenterTemplate

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

      • init

        public void init()
                  throws MXException
        Initialize Related Work Center Mbo.
        Overrides:
        init in class Mbo
        Throws:
        MXException - throws MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Default value for some of the fields of the new WorkCenterTemplate. The table below shows the default values for each of the attributes listed.
        workcenterOwner's application name.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • applyTemplate

        public void applyTemplate()
                           throws MXException,
                                  java.rmi.RemoteException
        Apply Security Template to Security Group for Work Center.
        Throws:
        MXException
        java.rmi.RemoteException
      • loadtemplate

        public java.util.Map loadtemplate(java.lang.String appName)
                                   throws MXException,
                                          java.rmi.RemoteException
        Load authorizations for Security Template
        Parameters:
        appName - Application Name
        Returns:
        map with all authorizations per application
        Throws:
        MXException - throws MXApplicationException if the object structure was referenced in MAXIFACEIN, MAXIFACEOUT and MAXIFACEINVOKE tables/MBOs
        java.rmi.RemoteException - throws RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        checks whether security template record can be deleted
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException - throws MXApplicationException if the object structure was referenced in MAXIFACEIN, MAXIFACEOUT and MAXIFACEINVOKE tables/MBOs
        java.rmi.RemoteException - throws RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        validates the AliasConflict flag
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
      • getDefaultMbo

        public MboRemote getDefaultMbo()
                                throws MXException,
                                       java.rmi.RemoteException
        Get Mbo for default Object Structure for an Application
        Throws:
        MXException - throws MXApplicationException if object appears twice in the ObjectStrcuture Detail Set
        java.rmi.RemoteException - throws RemoteException
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicates an WORKCENTERTEMPLATE record.
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly created record.
        Throws:
        MXException - Maximo Exception
        java.rmi.RemoteException - Remote Exception
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        delete security template record
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - Access Modifier
        Throws:
        MXException - throws MXException
        java.rmi.RemoteException - throws RemoteException
        See Also:
        Mbo.delete(long)
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashSet. If this field does not need to be copied return true. The following are the workcentertemplate fields will be skipped without being copied to the newly duplicated IntObject:
        1. template
        2. userdefined
        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 return true, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException