Class ServiceUtils
- java.lang.Object
-
- com.identityworksllc.iiq.common.service.ServiceUtils
-
public class ServiceUtils extends Object
Utilities for services
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidstoreTimestamps(sailpoint.api.SailPointContext context, sailpoint.object.ServiceDefinition target, long lastStart)Stores the last start and stop timestamps on the given ServiceDefinition.
-
-
-
Method Detail
-
storeTimestamps
public static void storeTimestamps(sailpoint.api.SailPointContext context, sailpoint.object.ServiceDefinition target, long lastStart) throws sailpoint.tools.GeneralException
Stores the last start and stop timestamps on the given ServiceDefinition.This is most useful with a single-server service, implemented using either
SingleServerServiceorCommonPluginUtils.singleServerExecute(SailPointContext, ServiceDefinition, CommonPluginUtils.SingleServerExecute).The time of this method’s invocation will be used as the ‘last stop’ timestamp.
- Parameters:
context- The context of this servicetarget- The target of this servicelastStart- The last start timestamp of this service- Throws:
sailpoint.tools.GeneralException- when something goes wrong persisting the ServiceDefinition change
-
-