Package org.eclipse.orion.internal.server.servlets

Examples of org.eclipse.orion.internal.server.servlets.Activator$AuthServiceTracker


      return statusHandler.handleRequest(req, resp, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_BAD_REQUEST, "User " + userId + " could not be found.", null));
    }

    // Delete user from metadata store
    try {
      @SuppressWarnings("unused")
      Activator r = Activator.getDefault();
      final IMetaStore metastore = OrionConfiguration.getMetaStore();
      if (userInfo.getWorkspaceIds().size() > 0) {
        for (String workspaceId : userInfo.getWorkspaceIds()) {
          WorkspaceInfo workspaceInfo = metastore.readWorkspace(workspaceId);
View Full Code Here


   * @param uri The URI to remove access to
   * @throws CoreException If an error occurred persisting user rights.
   */
  public static void removeUserRight(String userId, String uri) throws CoreException {
    try {
      @SuppressWarnings("unused")
      Activator r = Activator.getDefault();
      UserInfo user = OrionConfiguration.getMetaStore().readUser(userId);
      JSONArray userRightArray = AuthorizationReader.getAuthorizationData(user);
      for (int i = 0; i < userRightArray.length(); i++) {
        if (uri.equals(((JSONObject) userRightArray.get(i)).get(ProtocolConstants.KEY_USER_RIGHT_URI)))
View Full Code Here

TOP

Related Classes of org.eclipse.orion.internal.server.servlets.Activator$AuthServiceTracker

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.