com.ibm.tivoli.maximo.srvad.app

Class ServiceAddress

  • java.lang.Object
    • psdi.mbo.Mbo
      • com.ibm.tivoli.maximo.srvad.app.ServiceAddress
    • Constructor Detail

      • ServiceAddress

        public ServiceAddress(MboSet ms)
                       throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method 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. If this field does not need to be copied return true.
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        - - 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:
        java.rmi.RemoteException
        MXException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        LatitudeY and LongitudeX must be either both filled either none.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        protected void save()
                     throws MXException,
                            java.rmi.RemoteException
        When saving a value in a SA that is related to another object (like a Location) we need to check if this change is being done in an original SA or a customized SA.
        If it's an original we must clone the original SA into a new customized SA.
        Also, if a customized SA gets modified, and it wasn't done by SA's owner, this SA will be treated as an original SA, and same rules for originals will be applied to it. If LongitudeX or LatitudeY is modified, delete the records from SKDOriginDestMatrix where the source is GOOGLE or BING
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        During add we must set the owner name if any. (when ading from another app than SA)
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • isParent

        public java.lang.Boolean isParent()
                                   throws MXException,
                                          java.rmi.RemoteException
        A SA is parent if it's OBJECTNAME is null, that means it's not customized.
        Specified by:
        isParent in interface ServiceAddressRemote
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • saveGISData

        public void saveGISData(java.lang.String address,
                                java.lang.String lat,
                                java.lang.String lng)
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from interface: GISable
        Implement the logic to save the GIS Data
        Specified by:
        saveGISData in interface GISable
        Throws:
        MXException
        java.rmi.RemoteException
      • makeEditableOnSAInfoEdit

        public boolean makeEditableOnSAInfoEdit(MboRemote checker)
                                         throws java.rmi.RemoteException,
                                                MXException
        Description copied from interface: ServiceAddressRemote
        Check if SAEDITABLE maxvar is enabled. If no the service address record has its attributes open to be edited.
        Specified by:
        makeEditableOnSAInfoEdit in interface ServiceAddressRemote
        Returns:
        the SAEDITABLE maxvar state: enabled/disabled.
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        com.ibm.tivoli.maximo.srvad.app.ServiceAddressRemote#makeEditableOnLochierarchy(psdi.mbo.MboRemote)
      • getOrgSiteForMaxvar

        public java.lang.String getOrgSiteForMaxvar(java.lang.String maxvarName)
                                             throws MXException,
                                                    java.rmi.RemoteException
        Description copied from class: Mbo
        Returns org or site for getting maxvar
        Specified by:
        getOrgSiteForMaxvar in interface MboRemote
        Overrides:
        getOrgSiteForMaxvar in class Mbo
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getLatitudeY

        public java.lang.Double getLatitudeY()
                                      throws MXException,
                                             java.rmi.RemoteException
        Description copied from interface: GISable
        Return a double value with the the Latitude (or Y) coordinate of the current entitty.
        Specified by:
        getLatitudeY in interface GISable
        Returns:
        Double or null
        Throws:
        MXException
        java.rmi.RemoteException
      • getLongitudeX

        public java.lang.Double getLongitudeX()
                                       throws MXException,
                                              java.rmi.RemoteException
        Description copied from interface: GISable
        Return a double value with the the Longitude (or X) coordinate of the current entitty.
        Specified by:
        getLongitudeX in interface GISable
        Returns:
        Double or null
        Throws:
        MXException
        java.rmi.RemoteException
      • getAddressString

        public java.lang.String getAddressString()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Description copied from interface: GISable
        Return a string with the address of the current entitty.
        Specified by:
        getAddressString in interface GISable
        Returns:
        Double or null
        Throws:
        MXException
        java.rmi.RemoteException
      • isGISDataReadonly

        public boolean isGISDataReadonly()
                                  throws MXException,
                                         java.rmi.RemoteException
        Description copied from interface: GISable
        Indicate if the current GIS entity is editable or not. Usefull when the coordinates are populated using an external system.
        Specified by:
        isGISDataReadonly in interface GISable
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • hasCoords

        public java.lang.Boolean hasCoords()
                                    throws MXException,
                                           java.rmi.RemoteException
        Description copied from interface: GISable
        Check if this autolocatable object has coordinates filled (LAT,LONG)
        Specified by:
        hasCoords in interface GISable
        Returns:
        the boolean
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • getAutoLocateObject

        public MboRemote getAutoLocateObject()
                                      throws MXException,
                                             java.rmi.RemoteException
        Description copied from interface: AutoLocatable
        Returns an autolocate object instance if present.
        Specified by:
        getAutoLocateObject in interface AutoLocatable
        Returns:
        the auto locate object
        Throws:
        MXException - the mX exception
        java.rmi.RemoteException - the remote exception
      • updateGeometry

        public void updateGeometry()
                            throws java.rmi.RemoteException,
                                   MXException
        Throws:
        java.rmi.RemoteException
        MXException