psdi.app.route

Class Route

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


    public class Route
    extends Mbo
    implements RouteRemote
    Mbo object to represent Route.
    See Route Package description for details.

    This is a site level object.

    The key attributes for this object are SiteId and Route.

    The attributes in this object are as follows::

    Attribute NameDescription
    DescriptionDescription of the Route.
    LDKeyLong Description Key. This is a link to text stored in the LongDescription table.
    OrgIdIdentifier of the organization for the Rotue.
    ParentChgsStatusFlag to indicate whether the parent of a work order should change the childs status.
    SummaryFlag to indicate whether child WOs or tasks should be created
    RouteUnique indifier for the route.
    SiteIdIdentifier of the site for the Route.

    • Constructor Detail

      • Route

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

      • getIsDuplicate

        public boolean getIsDuplicate()
        returns whether a route is being crated during a duplciate process or not
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Can this route be deleted ? A delete of a route will only be allowed if there is no reference to the route in any of the following places: PM and PMSEHEDACTIVITY
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        delete
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete route record and all references to this route in other tables.
        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)
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        This method creates a duplicate record for route and related objects(route stop). The duplicated Route's route number will be an autokeyed value or blank if the autokey is "off".
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly duplicated Route
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        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 route fields will be skipped without being copied to the newly duplicated workorder
        1. ROUTE
        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
        See Also:
        WO.loadSkipFieldCopyHashSet()
      • copyLinearAssets

        public void copyLinearAssets(MboSetRemote assetset)
                              throws java.rmi.RemoteException,
                                     MXException
        In this case, the source MboSet is an AssetLocRelation set, not an Asset set; the fields specified must reflect this.
        Specified by:
        copyLinearAssets in interface RouteRemote
        Throws:
        java.rmi.RemoteException
        MXException