public class ResourceMaxManager extends java.lang.Object implements IResourceManager
| Constructor and Description | 
|---|
| ResourceMaxManager(MXServer mxServer)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Collection<IMXReservation> | getAllReservations(java.lang.Long projectId,
                  UserInfo userInfo)Get all Project reservations. | 
| java.util.Collection<IMXReservation> | getAllZoneReservations(java.lang.Long projectId,
                      UserInfo userInfo)Get all zone reservations. | 
| java.util.Map<java.lang.String,java.lang.Double> | getModifiedAvailabilityHours(java.lang.Long projectId,
                            java.lang.String type,
                            UserInfo userInfo)Get working/non-working (modified availability) hours for the Project. | 
| java.util.Collection<IMXReservation> | 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<IMXResource> | getResources(Schedule schedule,
            Range<java.util.Date> range,
            java.util.List<java.lang.String> 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<IMXResource> | getResourcesAvailability(java.util.Set<java.lang.String> 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<IMXResource> | getZoneAvailability(java.lang.Long projectId,
                   UserInfo userInfo)Get zone resources availability | 
public ResourceMaxManager(MXServer mxServer)
mxServer - public java.util.Collection<IMXResource> getResources(Schedule schedule, Range<java.util.Date> range, java.util.List<java.lang.String> objectNames, boolean bucketBased) throws java.rmi.RemoteException, MXException
IResourceManagergetResources in interface IResourceManagerMXExceptionjava.rmi.RemoteExceptioncom.ibm.tivoli.maximo.skd.max.service.IResourceManager#getResources(com.ibm.tivoli.maximo.skd.max.model.Schedule, 
 		com.ibm.tivoli.maximo.util.Range)public java.util.Collection<IMXReservation> getReservations(Schedule schedule, IMXResource resource) throws java.rmi.RemoteException, MXException
IResourceManagergetReservations in interface IResourceManagerjava.rmi.RemoteExceptionMXExceptionIResourceManager.getReservations(com.ibm.tivoli.maximo.skd.max.model.Schedule,
      com.ibm.tivoli.maximo.skd.model.IMXResource)public IMXResource getResourceForId(java.lang.String id)
IResourceManagergetResourceForId in interface IResourceManagerpublic java.util.Collection<IMXReservation> getAllReservations(java.lang.Long projectId, UserInfo userInfo) throws java.rmi.RemoteException, MXException
IResourceManagergetAllReservations in interface IResourceManagerjava.rmi.RemoteExceptionMXExceptionpublic java.util.Collection<IMXResource> getResourcesAvailability(java.util.Set<java.lang.String> resources, UserInfo userInfo, int resourceType, java.lang.Long projectId) throws java.rmi.RemoteException, MXException
IResourceManagergetResourcesAvailability in interface IResourceManagerresources - - List of resources names, such as: ELECT, CARP.resourceType - - Craft (0), Crew Type (1) or Tools (2)java.rmi.RemoteExceptionMXExceptionpublic java.lang.Double getTotalWorkHours(java.lang.Long projectId,
                                          UserInfo userInfo)
                                   throws java.rmi.RemoteException,
                                          MXException
IResourceManagergetTotalWorkHours in interface IResourceManagerjava.rmi.RemoteExceptionMXExceptionpublic java.util.Map<java.lang.String,java.lang.Double> getModifiedAvailabilityHours(java.lang.Long projectId,
                                                                                     java.lang.String type,
                                                                                     UserInfo userInfo)
                                                                              throws java.rmi.RemoteException,
                                                                                     MXException
IResourceManagergetModifiedAvailabilityHours in interface IResourceManagerjava.rmi.RemoteExceptionMXExceptionpublic java.util.Collection<IMXResource> getZoneAvailability(java.lang.Long projectId, UserInfo userInfo) throws java.rmi.RemoteException, MXException
IResourceManagergetZoneAvailability in interface IResourceManagerjava.rmi.RemoteExceptionMXExceptionpublic java.util.Collection<IMXReservation> getAllZoneReservations(java.lang.Long projectId, UserInfo userInfo) throws java.rmi.RemoteException, MXException
IResourceManagergetAllZoneReservations in interface IResourceManagerjava.rmi.RemoteExceptionMXException