Examples of userId()


Examples of com.goodow.realtime.store.Collaborator.userId()

  }

  void consumeAndSubmit(OperationComponent<?> component) {
    Collaborator me = document.collaborators.get(store.getBus().getSessionId());
    CollaborativeOperation operation =
        new CollaborativeOperation(me == null ? null : me.userId(), store.getBus().getSessionId(),
                                   Json.createArray().push(component));
    applyLocally(operation);
    undoManager.checkpoint();
    undoManager.undoableOp(operation);
    mayUndoRedoStateChanged();
View Full Code Here

Examples of com.goodow.realtime.store.Collaborator.userId()

      }
    } else if (!sessionId.equals(other.sessionId())) {
      return false;
    }
    if (userId == null) {
      if (other.userId() != null) {
        return false;
      }
    } else if (!userId.equals(other.userId())) {
      return false;
    }
View Full Code Here

Examples of com.goodow.realtime.store.Collaborator.userId()

    }
    if (userId == null) {
      if (other.userId() != null) {
        return false;
      }
    } else if (!userId.equals(other.userId())) {
      return false;
    }
    return true;
  }
View Full Code Here

Examples of org.activiti.engine.identity.UserQuery.userId()

  @RequestMapping(value="/identity/users", method = RequestMethod.GET, produces = "application/json")
  public DataResponse getUsers(@RequestParam Map<String,String> allRequestParams, HttpServletRequest request) {
    UserQuery query = identityService.createUserQuery();
   
    if (allRequestParams.containsKey("id")) {
      query.userId(allRequestParams.get("id"));
    }
    if (allRequestParams.containsKey("firstName")) {
      query.userFirstName(allRequestParams.get("firstName"));
    }
    if (allRequestParams.containsKey("lastName")) {
View Full Code Here

Examples of org.camunda.bpm.engine.identity.UserQuery.userId()

  @Test
  public void testGetSingleUserProfile() {
    User sampleUser = MockProvider.createMockUser();
    UserQuery sampleUserQuery = mock(UserQuery.class);
    when(identityServiceMock.createUserQuery()).thenReturn(sampleUserQuery);
    when(sampleUserQuery.userId(MockProvider.EXAMPLE_USER_ID)).thenReturn(sampleUserQuery);
    when(sampleUserQuery.singleResult()).thenReturn(sampleUser);

    given()
        .pathParam("id", MockProvider.EXAMPLE_USER_ID)
    .then()
View Full Code Here

Examples of org.camunda.bpm.engine.identity.UserQuery.userId()

    String fullUserUrl = "http://localhost:" + PORT + TEST_RESOURCE_ROOT_PATH + "/user/" + MockProvider.EXAMPLE_USER_ID;

    User sampleUser = MockProvider.createMockUser();
    UserQuery sampleUserQuery = mock(UserQuery.class);
    when(identityServiceMock.createUserQuery()).thenReturn(sampleUserQuery);
    when(sampleUserQuery.userId(MockProvider.EXAMPLE_USER_ID)).thenReturn(sampleUserQuery);
    when(sampleUserQuery.singleResult()).thenReturn(sampleUser);
    when(identityServiceMock.getCurrentAuthentication()).thenReturn(null);

    given()
        .pathParam("id", MockProvider.EXAMPLE_USER_ID)
View Full Code Here

Examples of org.camunda.bpm.engine.identity.UserQuery.userId()

    String fullUserUrl = "http://localhost:" + PORT + TEST_RESOURCE_ROOT_PATH + "/user/" + MockProvider.EXAMPLE_USER_ID;

    User sampleUser = MockProvider.createMockUser();
    UserQuery sampleUserQuery = mock(UserQuery.class);
    when(identityServiceMock.createUserQuery()).thenReturn(sampleUserQuery);
    when(sampleUserQuery.userId(MockProvider.EXAMPLE_USER_ID)).thenReturn(sampleUserQuery);
    when(sampleUserQuery.singleResult()).thenReturn(sampleUser);

    Authentication authentication = new Authentication(MockProvider.EXAMPLE_USER_ID, null);
    when(identityServiceMock.getCurrentAuthentication()).thenReturn(authentication);
    when(authorizationServiceMock.isUserAuthorized(MockProvider.EXAMPLE_USER_ID, null, DELETE, USER, MockProvider.EXAMPLE_USER_ID)).thenReturn(false);
View Full Code Here

Examples of org.camunda.bpm.engine.identity.UserQuery.userId()

    String fullUserUrl = "http://localhost:" + PORT + TEST_RESOURCE_ROOT_PATH + "/user/" + MockProvider.EXAMPLE_USER_ID;

    User sampleUser = MockProvider.createMockUser();
    UserQuery sampleUserQuery = mock(UserQuery.class);
    when(identityServiceMock.createUserQuery()).thenReturn(sampleUserQuery);
    when(sampleUserQuery.userId(MockProvider.EXAMPLE_USER_ID)).thenReturn(sampleUserQuery);
    when(sampleUserQuery.singleResult()).thenReturn(sampleUser);

    Authentication authentication = new Authentication(MockProvider.EXAMPLE_USER_ID, null);
    when(identityServiceMock.getCurrentAuthentication()).thenReturn(authentication);
    when(authorizationServiceMock.isUserAuthorized(MockProvider.EXAMPLE_USER_ID, null, DELETE, USER, MockProvider.EXAMPLE_USER_ID)).thenReturn(true);
View Full Code Here

Examples of org.camunda.bpm.engine.identity.UserQuery.userId()

  @Test
  public void testGetNonExistingUserProfile() {
    UserQuery sampleUserQuery = mock(UserQuery.class);
    when(identityServiceMock.createUserQuery()).thenReturn(sampleUserQuery);
    when(sampleUserQuery.userId(anyString())).thenReturn(sampleUserQuery);
    when(sampleUserQuery.singleResult()).thenReturn(null);

    given()
        .pathParam("id", "aNonExistingUser")
    .then()
View Full Code Here

Examples of org.camunda.bpm.engine.identity.UserQuery.userId()

  @Test
  public void testPutCredentials() {
    User initialUser = MockProvider.createMockUser();
    UserQuery sampleUserQuery = mock(UserQuery.class);
    when(identityServiceMock.createUserQuery()).thenReturn(sampleUserQuery);
    when(sampleUserQuery.userId(MockProvider.EXAMPLE_USER_ID)).thenReturn(sampleUserQuery);
    when(sampleUserQuery.singleResult()).thenReturn(initialUser);

    UserCredentialsDto dto = new UserCredentialsDto();
    dto.setPassword("new-password");
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.