Package org.sonatype.nexus.rest.model

Examples of org.sonatype.nexus.rest.model.ScheduledServicePropertyResource


    resource.setAlertEmail("foo@bar.org");
    resource.setName("Name");
    resource.setEnabled(true);
    resource.setCronCommand("cronCommand");

    ScheduledServicePropertyResource prop1 = new ScheduledServicePropertyResource();
    prop1.setKey("id1");
    prop1.setValue("value1");
    resource.addProperty(prop1);

    ScheduledServicePropertyResource prop2 = new ScheduledServicePropertyResource();
    prop2.setKey("id2");
    prop2.setValue("value2");
    resource.addProperty(prop2);

    ScheduledServiceResourceResponse resourceResponse = new ScheduledServiceResourceResponse();
    resourceResponse.setData(resource);
View Full Code Here


    resource.setEnabled(true);
    resource.setRecurringTime("recurringTime");
    resource.addRecurringDay("recurringDay1");
    resource.addRecurringDay("recurringDay2");

    ScheduledServicePropertyResource prop1 = new ScheduledServicePropertyResource();
    prop1.setKey("id1");
    prop1.setValue("value1");
    resource.addProperty(prop1);

    ScheduledServicePropertyResource prop2 = new ScheduledServicePropertyResource();
    prop2.setKey("id2");
    prop2.setValue("value2");
    resource.addProperty(prop2);

    ScheduledServiceResourceResponse resourceResponse = new ScheduledServiceResourceResponse();
    resourceResponse.setData(resource);
View Full Code Here

    resource.setEnabled(true);
    resource.setRecurringTime("recurringTime");
    resource.addRecurringDay("recurringDay1");
    resource.addRecurringDay("recurringDay2");

    ScheduledServicePropertyResource prop1 = new ScheduledServicePropertyResource();
    prop1.setKey("id1");
    prop1.setValue("value1");
    resource.addProperty(prop1);

    ScheduledServicePropertyResource prop2 = new ScheduledServicePropertyResource();
    prop2.setKey("id2");
    prop2.setValue("value2");
    resource.addProperty(prop2);

    ScheduledServiceResourceResponse resourceResponse = new ScheduledServiceResourceResponse();
    resourceResponse.setData(resource);
View Full Code Here

    scheduledTask.addRecurringDay("friday");

    scheduledTask.setTypeId("org.sonatype.nexus.tasks.RepairIndexTask");
    scheduledTask.setAlertEmail("foo@bar.org");

    ScheduledServicePropertyResource prop = new ScheduledServicePropertyResource();
    prop.setKey("repositoryId");
    prop.setValue("all_repo");
    scheduledTask.addProperty(prop);

    ScheduledServiceResourceResponse resourceResponse = new ScheduledServiceResourceResponse();
    resourceResponse.setData(scheduledTask);
View Full Code Here

        task.setName(getModelName(resource));

        task.setSchedule(getModelSchedule(resource));

        for (Iterator<ScheduledServicePropertyResource> iter = resource.getProperties().iterator(); iter.hasNext(); ) {
          ScheduledServicePropertyResource prop = iter.next();

          task.getTaskParams().put(prop.getKey(), prop.getValue());
        }

        TaskUtils.setAlertEmail(task, resource.getAlertEmail());
        TaskUtils.setId(task, resource.getId());
        TaskUtils.setName(task, resource.getName());
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.rest.model.ScheduledServicePropertyResource

Copyright © 2018 www.massapicom. 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.