Examples of IOperationMetaInfo


Examples of org.jresearch.flexess.core.model.IOperationMetaInfo

    Set operations = po.getOperations();
    assertNotNull(operations);
    assertEquals(4, operations.size());

    // testing permissions
    IOperationMetaInfo op = findOperationWithName(operations, "create"); //$NON-NLS-1$
    assertNotNull(op);
    Set perm = op.getPermissionDescriptions();
    assertNotNull(perm);
    assertEquals(perm.size(), 0);

    op = findOperationWithName(operations, "update"); //$NON-NLS-1$
    assertNotNull(op);
    perm = op.getPermissionDescriptions();
    assertNotNull(perm);
    assertEquals(perm.size(), 1);
    assertEquals(((ElementDescription) perm.iterator().next()).getId(), "_KBjlgMm3Edu14qXh2kkVDA"); //$NON-NLS-1$

    op = findOperationWithName(operations, "delete"); //$NON-NLS-1$
    assertNotNull(op);
    perm = op.getPermissionDescriptions();
    assertNotNull(perm);
    assertEquals(perm.size(), 1);
    assertEquals(((ElementDescription) perm.iterator().next()).getId(), "_KBjlgMm3Edu14qXh2kkVDA"); //$NON-NLS-1$

    op = findOperationWithName(operations, "read"); //$NON-NLS-1$
    assertNotNull(op);
    perm = op.getPermissionDescriptions();
    assertNotNull(perm);
    assertEquals(perm.size(), 1);
    assertEquals(((ElementDescription) perm.iterator().next()).getId(), "_KBjlgMm3Edu14qXh2kkVDA"); //$NON-NLS-1$

    Set descr = po.getPermissionDescriptions();
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.