agave-common/common-legacy-api/src/main/java/org/iplantc/service/common/quartz/util/QuartzUtility.java
/**
     * if authorized, resets priority for class to original value.
     *
     * @param triggerKey trigger to reset.
     * @return json response that cron was reset
     */
if authorized, resets priority for class to original value.
@param triggerKey trigger to reset.
@return json response that cron was reset
if authorized resets priority for class to original value . @param triggerKey trigger to reset . @return json response that cron was reset
public synchronized final String resetCronExpression(final String triggerKey) {
        if (isAuthorized()) {
            OriginalCronSetting originalCronSetting = triggerOriginalSetting.get(triggerKey);
            if (originalCronSetting == null) {
                return toJSON(
                        new QuartzConfigResetResponse("trigger not changed", QuartzConfigResetResponse.Type.ERROR)
                );
            } else {
                return toJSON(
                        changeJobCronExpression(
                                originalCronSetting.getJobName(),
                                originalCronSetting.getTriggerKey(),
                                originalCronSetting.getNewExpression(),
                                originalCronSetting.getOldExpression()
                        )
                );
            }
        }
        throw new AuthorizationException();
    }
public synchronized final String resetCronExpression ( final String triggerKey ) { if ( isAuthorized ( ) ) { OriginalCronSetting originalCronSetting = triggerOriginalSetting . get ( triggerKey ) ; if ( originalCronSetting == null ) { return toJSON ( new QuartzConfigResetResponse ( "trigger not changed" , QuartzConfigResetResponse . Type . ERROR ) ) ; } else { return toJSON ( changeJobCronExpression ( originalCronSetting . getJobName ( ) , originalCronSetting . getTriggerKey ( ) , originalCronSetting . getNewExpression ( ) , originalCronSetting . getOldExpression ( ) ) ) ; } } throw new AuthorizationException ( ) ; }
if authorized, resets priority for class to original value.
if authorized resets priority for class to original value .