Package com.ptc.wvs.server.schedule
Class ScheduleJobs
java.lang.Object
com.ptc.wvs.server.schedule.ScheduleJobs
Class containing methods available to those writing customized queries for Scheduled Jobs.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic WTContainerRefReturns the WTContainerRef of the Scheduled Job's context.static WTListgetRepresentables(Class<?> _class, boolean _onlyLatest, boolean _onlyWithNoRep) Returns list of objects of a specified class.static booleanReturns flag indicating if a specified object is a "new" object.static WTListremoveInWork(WTList _originalList) Examines a WTList and returns a new WTList with objects "In Work" removed.static WTListremoveInWork(QueryResult _qr) Examines a QueryResult and returns a new WTList with objects "In Work" removed.
-
Method Details
-
getCurrentContainer
Returns the WTContainerRef of the Scheduled Job's context. NOTE: This method can be used by other classes that perform queries on behalf of Scheduled Jobs. Supported API: true- Returns:
- WTContainerRef
-
getRepresentables
public static WTList getRepresentables(Class<?> _class, boolean _onlyLatest, boolean _onlyWithNoRep) Returns list of objects of a specified class. Caller can request only latest iteration of the object and only objects that do not currently have a Representation. Supported API: true- Parameters:
_class- Class of interest._onlyLatest- Flag indicating if only the latest iteration of the object should be returned._onlyWithNoRep- Flag indicating if only objects without a Representation should be returned.- Returns:
- WTList of Objects. Can be an empty list.
-
removeInWork
Examines a WTList and returns a new WTList with objects "In Work" removed. Supported API: true- Parameters:
_qr- WTList of Objects to consider.- Returns:
- New WTList with "In Work" objects removed. Can be an empty WTList.
-
removeInWork
Examines a QueryResult and returns a new WTList with objects "In Work" removed. Supported API: true- Parameters:
_qr- QueryResult of Objects to consider.- Returns:
- New WTList with "In Work" objects removed. Can be an empty WTList.
-
isNewObject
Returns flag indicating if a specified object is a "new" object. A "new" object is in a workspace but has not yet been checked in. Supported API: true- Parameters:
_p- Persistable of interest.- Returns:
- true if the specified object is "new."
-