com.ibm.tivoli.maximo.skd.max.service

Interface IResourceManager

    • Method Detail

      • getResources

        java.util.Collection getResources(Schedule schedule,
                                          Range range,
                                          java.util.List objectNames,
                                          boolean bucketBased)
                                   throws java.rmi.RemoteException,
                                          MXException
        For the given schedule and the Date Range (in System times), return an interator of Resources that match the given range in the Schedule. We should check the scheduler Resource Data Manager to get a list of Columns that would be loaded for a given resource, and be sure that we populate those accordingly.
        Parameters:
        schedule -
        range -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getReservations

        java.util.Collection getReservations(Schedule schedule,
                                             IMXResource resource)
                                      throws java.rmi.RemoteException,
                                             MXException
        For the given resource, we need to return an Iterator of the Reservations for that resources. A Reservation contains some information related to the load/availability, and it contains a reference to the IMXActivity (ie, the work). The IMXActivity record may not actually be loaded in the Schedule, so if it's not loaded, then we will need to load it on-demand. We should check the Reservation Data Manager in scheduler to make sure that we are loading the Reservation data properties accordingly per reservation.
        Parameters:
        schedule -
        resource -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getResourceForId

        IMXResource getResourceForId(java.lang.String id)
        Find the resource for the provided id.
        Parameters:
        id -
        Returns:
      • getAllReservations

        java.util.Collection getAllReservations(java.lang.Long projectId,
                                                UserInfo userInfo)
                                         throws java.rmi.RemoteException,
                                                MXException
        Get all Project reservations.
        Parameters:
        projectId -
        userInfo -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getResourcesAvailability

        java.util.Collection getResourcesAvailability(java.util.Set resources,
                                                      UserInfo userInfo,
                                                      int resourceType,
                                                      java.lang.Long projectId)
                                               throws java.rmi.RemoteException,
                                                      MXException
        Get resources availability
        Parameters:
        resources - - List of resources names, such as: ELECT, CARP.
        resourceType - - Craft (0), Crew Type (1) or Tools (2)
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getTotalWorkHours

        java.lang.Double getTotalWorkHours(java.lang.Long projectId,
                                           UserInfo userInfo)
                                    throws java.rmi.RemoteException,
                                           MXException
        Get total shift hours for the Project.
        Parameters:
        projectId -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getModifiedAvailabilityHours

        java.util.Map getModifiedAvailabilityHours(java.lang.Long projectId,
                                                   java.lang.String type,
                                                   UserInfo userInfo)
                                            throws java.rmi.RemoteException,
                                                   MXException
        Get working/non-working (modified availability) hours for the Project.
        Parameters:
        projectId -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getAllZoneReservations

        java.util.Collection getAllZoneReservations(java.lang.Long projectId,
                                                    UserInfo userInfo)
                                             throws java.rmi.RemoteException,
                                                    MXException
        Get all zone reservations.
        Parameters:
        projectId -
        userInfo -
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • getZoneAvailability

        java.util.Collection getZoneAvailability(java.lang.Long projectId,
                                                 UserInfo userInfo)
                                          throws java.rmi.RemoteException,
                                                 MXException
        Get zone resources availability
        Parameters:
        resources - - List of resources names, such as: ELECT, CARP.
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException