Examples of authorizeActionForUser()


Examples of org.intalio.tempo.workflow.task.Notification.authorizeActionForUser()

    }

    public void testNotificationMarshalling() throws Exception {
        Notification task = new Notification("id", new URI("http://localhost/form"), TestUtils.createXMLDocument());
        task.setPriority(2);
        task.authorizeActionForUser("dismiss", "test/user1");
        this.testTaskMarshalling(task);
    }

    public void testPIPATaskMetaMarshalling() throws Exception {
        PIPATask task = new PIPATask("id", new URI("http://localhost/form"), new URI("http://localhost/endpoint"), new URI("urn:initNS"), "urn:initSoapAction");
View Full Code Here

Examples of org.intalio.tempo.workflow.task.PATask.authorizeActionForUser()

  private PATask getSampleTask(TaskState state) throws URISyntaxException,
      Exception {
    String id = String.valueOf(new Object().hashCode());
    PATask task1 = new PATask(id, new URI("http://hellonico.net"),
        "processId", "soap", getXmlSampleDocument());
    task1.authorizeActionForUser("save", "examples\\manager");
    task1.setPriority(2);
    task1.setState(state);
    task1.getRoleOwners().add("role1");
    task1.getUserOwners().add("user1");
    return task1;
View Full Code Here

Examples of org.intalio.tempo.workflow.task.PATask.authorizeActionForUser()

    public void testFullPAMarshallingRoundtrip() throws Exception {
        PATask task1 = new PATask("taskID", new URI("http://localhost/URL"), "processID", "urn:completeSOAPAction",
                TestUtils.createXMLDocument());
        task1.setPriority(new Integer(3));
        task1.authorizeActionForRole("save", "intalio\\engineer");
        task1.authorizeActionForUser("save", "david");
        Calendar c = Calendar.getInstance();
        c.add(Calendar.MONTH, 1);
        task1.setDeadline(c.getTime());
        task1.setCreationDate(new Date());
        task1.setPreviousTaskID("123");
View Full Code Here

Examples of org.intalio.tempo.workflow.task.PATask.authorizeActionForUser()

        task.setFailureCode("FATAL");
        task.setFailureReason("Don't really know");
        task.setDeadline(new Date());
        task.setPriority(1);
        task.setProcessID("processID1");
        task.authorizeActionForUser("claim", "test/user1");
        task.authorizeActionForRole("revoke", "test/role1");

        task.addAttachment(new Attachment(new AttachmentMetadata(), new URL("http://localhost/url1")));
        AttachmentMetadata metadata = new AttachmentMetadata();
        metadata.setMimeType("image/jpeg");
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.