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

Class ResourceMaxManager

  • java.lang.Object
    • com.ibm.tivoli.maximo.skd.max.service.ResourceMaxManager
  • All Implemented Interfaces:
    IResourceManager


    public class ResourceMaxManager
    extends java.lang.Object
    implements IResourceManager
    Data Manager for the Resources/Reservations in GS - Large Projects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Collection getAllReservations(java.lang.Long projectId, UserInfo userInfo)
      Get all Project reservations.
      java.util.Collection getAllZoneReservations(java.lang.Long projectId, UserInfo userInfo)
      Get all zone reservations.
      java.util.Map getModifiedAvailabilityHours(java.lang.Long projectId, java.lang.String type, UserInfo userInfo)
      Get working/non-working (modified availability) hours for the Project.
      java.util.Collection getReservations(Schedule schedule, IMXResource resource)
      For the given resource, we need to return an Iterator of the Reservations for that resources.
      IMXResource getResourceForId(java.lang.String id)
      Find the resource for the provided id.
      java.util.Collection getResources(Schedule schedule, Range range, java.util.List objectNames, boolean bucketBased)
      For the given schedule and the Date Range (in System times), return an interator of Resources that match the given range in the Schedule.
      java.util.Collection getResourcesAvailability(java.util.Set resources, UserInfo userInfo, int resourceType, java.lang.Long projectId)
      Get resources availability
      java.lang.Double getTotalWorkHours(java.lang.Long projectId, UserInfo userInfo)
      Get total shift hours for the Project.
      java.util.Collection getZoneAvailability(java.lang.Long projectId, UserInfo userInfo)
      Get zone resources availability
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceMaxManager

        public ResourceMaxManager(MXServer mxServer)
        Constructor.
        Parameters:
        mxServer -
    • Method Detail

      • getResources

        public java.util.Collection getResources(Schedule schedule,
                                                 Range range,
                                                 java.util.List objectNames,
                                                 boolean bucketBased)
                                          throws java.rmi.RemoteException,
                                                 MXException
        Description copied from interface: IResourceManager
        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.
        Specified by:
        getResources in interface IResourceManager
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        com.ibm.tivoli.maximo.skd.max.service.IResourceManager#getResources(com.ibm.tivoli.maximo.skd.max.model.Schedule, com.ibm.tivoli.maximo.util.Range)
      • getResourcesAvailability

        public java.util.Collection getResourcesAvailability(java.util.Set resources,
                                                             UserInfo userInfo,
                                                             int resourceType,
                                                             java.lang.Long projectId)
                                                      throws java.rmi.RemoteException,
                                                             MXException
        Description copied from interface: IResourceManager
        Get resources availability
        Specified by:
        getResourcesAvailability in interface IResourceManager
        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
      • getModifiedAvailabilityHours

        public java.util.Map getModifiedAvailabilityHours(java.lang.Long projectId,
                                                          java.lang.String type,
                                                          UserInfo userInfo)
                                                   throws java.rmi.RemoteException,
                                                          MXException
        Description copied from interface: IResourceManager
        Get working/non-working (modified availability) hours for the Project.
        Specified by:
        getModifiedAvailabilityHours in interface IResourceManager
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException