Examples of CronField


Examples of com.cronutils.model.field.CronField

    @VisibleForTesting
    static Function<CronField, CronField> returnOnZeroExpression(final CronFieldName name){
        return new Function<CronField, CronField>() {
            @Override
            public CronField apply(CronField field) {
                return new CronField(name, new On(FieldConstraintsBuilder.instance().forField(name).createConstraintsInstance(),"0"));
            }
        };
    }
View Full Code Here

Examples of com.cronutils.model.field.CronField

    @VisibleForTesting
    static Function<CronField, CronField> returnAlwaysExpression(final CronFieldName name){
        return new Function<CronField, CronField>() {
            @Override
            public CronField apply(CronField field) {
                return new CronField(name, new Always(FieldConstraintsBuilder.instance().forField(name).createConstraintsInstance()));
            }
        };
    }
View Full Code Here

Examples of com.cronutils.model.field.CronField

     * @param expression - cron expression
     * @return parse result as CronFieldParseResult instance - never null.
     * May throw a RuntimeException if cron expression is bad.
     */
    public CronField parse(String expression) {
        return new CronField(field, parser.parse(expression));
    }
View Full Code Here

Examples of org.jahia.ajax.gwt.client.widget.content.CronField

        remotePassword.setName("remotePassword");
        remotePassword.setFieldLabel(Messages.get("label.remotePassword", "Remote password"));
        remotePassword.setAllowBlank(false);
        add(remotePassword);

        final CronField schedule = new CronField();
        schedule.setName("schedule");
        schedule.setFieldLabel(Messages.get("label.remoteSchedule", "Schedule"));
        add(schedule);

        final CheckBox doValidate = new CheckBox();
        doValidate.setFieldLabel(Messages.get("label.remoteValidate", "Test settings"));
        doValidate.setValue(Boolean.TRUE);
        add(doValidate);


        // save properties button
        Button saveButton = new Button(Messages.get("label.save", "Save"));
        saveButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
            public void componentSelected(ButtonEvent componentEvent) {

        Map<String, String> props = new HashMap<String, String>();
        props.put("remoteUrl", remoteUrlField.getValue());
        props.put("remotePath", remotePath.getValue());
        props.put("remoteUser", remoteUser.getValue());
        props.put("remotePassword", remotePassword.getValue());
        props.put("node", localPath.getValue().getUUID());
        props.put("schedule", schedule.getValue());
             
        JahiaContentManagementService.App.getInstance().createRemotePublication(nameField.getValue(), props, doValidate.getValue(), new BaseAsyncCallback<Boolean>() {
          public void onSuccess(Boolean result) {
                      if (getParent() instanceof Window) {
                          ((Window) getParent()).hide();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.