com.ibm.tivoli.maximo.miniapps.scheduler.gworkassign

Class GWAGanttUtil

  • java.lang.Object
    • com.ibm.tivoli.maximo.miniapps.scheduler.gworkassign.GWAGanttUtil


  • public class GWAGanttUtil
    extends java.lang.Object
    • Constructor Detail

      • GWAGanttUtil

        public GWAGanttUtil()
    • Method Detail

      • isValid

        public static boolean isValid(Activity from,
                                      Activity to,
                                      UserInfo userInfo)
                               throws java.rmi.RemoteException,
                                      MXException
        Determine if a Constraint is valid from the given 'from' activity to the provided 'to' activity.
        Parameters:
        from -
        to -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • isWorkorder

        public static boolean isWorkorder(Activity mxa)
        Returns true if the given IlvActivity is a work order
        Parameters:
        act - IlvActivity instance
        Returns:
        true if it's a work order activity
      • isTask

        public static boolean isTask(Activity act)
      • toStringProps

        public static java.lang.String toStringProps(Activity from,
                                                     java.lang.String[] props)
        Given a UserPropertyHolder create a toString from the given properties
        Parameters:
        from -
        props -
        Returns:
      • equals

        public static boolean equals(Activity mx1,
                                     Activity mx2,
                                     java.lang.String propName)
        Returns true if both activities have the same object property, and the object property is equal() using the Java equals() method. NOTE if both properties are NULL, this method will return false for equals. ie, this will only do an equals provided that both properties exist.
        Parameters:
        mx1 -
        mx2 -
        propName -
        Returns:
      • createZooms

        protected static com.ibm.json.java.JSONArray createZooms(Range range,
                                                                 UIOptions options)
      • resolveSelectedActivitiesById

        public static java.util.List resolveSelectedActivitiesById(GWASchedule model,
                                                                   java.util.List arr)
      • isHidden

        public static boolean isHidden(IMXActivity mxa)
      • isDummy

        public static boolean isDummy(IMXActivity next)
      • isAssignmentDummy

        public static boolean isAssignmentDummy(IMXActivity node)
      • isLocked

        public static boolean isLocked(IMXActivity activity)
      • isResourceLocked

        public static boolean isResourceLocked(IMXActivity activity)
      • showRequirementIcon

        public static boolean showRequirementIcon(IMXActivity mxa)
      • showWorklogIcon

        public static boolean showWorklogIcon(IMXActivity mxa)
      • isCompleted

        public static boolean isCompleted(IMXActivity mxa)
      • buildGWAAssignmentID

        public static java.lang.String buildGWAAssignmentID(java.lang.String woNum,
                                                            java.lang.String siteID,
                                                            java.lang.String orgID,
                                                            java.lang.Long assignmentID)
                                                     throws MXException,
                                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • buildGWAAssignmentID

        public static java.lang.String buildGWAAssignmentID(MboRemote wo,
                                                            MboRemote assignment)
                                                     throws MXException,
                                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • buildGWAResourceID

        public static java.lang.String buildGWAResourceID(java.lang.String resource,
                                                          IMXActivity activity)
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • addCellIcon

        public static void addCellIcon(DataRow row,
                                       java.lang.String colName,
                                       java.lang.String imageUrl,
                                       int iconWidth,
                                       java.lang.String align,
                                       TMenuItem item)
        Adds a Table Cell Icon with optional action
        Parameters:
        writer -
        colName -
        imageUrl -
        iconWidth -
        align -
        item -
        Throws:
        java.io.IOException
      • detectSkillMappingConflict

        public static void detectSkillMappingConflict(GWASchedule model,
                                                      Activity activity,
                                                      java.lang.String resourceID,
                                                      ReplyBuilder reply)
      • setDateColumns

        public static void setDateColumns(java.util.List dateCols,
                                          com.ibm.json.java.JSONObject activity,
                                          java.util.TimeZone userTimeZone)