Examples of Status


Examples of org.dspace.rest.common.Status

            if(ePerson != null) {
                //DB EPerson needed since token won't have full info, need context
                EPerson dbEPerson = EPerson.findByEmail(context, ePerson.getEmail());
                String token = Resource.getToken(headers);
                Status status = new Status(dbEPerson.getEmail(), dbEPerson.getFullName(), token);
                return status;
            }

        } catch (ContextException e)
        {
            Resource.processException("Status context error: " + e.getMessage(), context);
        } catch (SQLException e) {
            Resource.processException("Status eperson db lookup error: " + e.getMessage(), context);
        } catch (AuthorizeException e) {
            Resource.processException("Status eperson authorize exception: " + e.getMessage(), context);
        } finally {
            context.abort();
        }

        //fallback status, unauth
        return new Status();
    }
View Full Code Here

Examples of org.eclipse.core.runtime.Status

      applyToStatusLine(status.get(0));
      setPageComplete(false);
      return;
    }
   
    applyToStatusLine(new Status(Status.OK, Activator.PLUGIN_ID, ""));   
    computeResponse();
    setPageComplete(true);
  }
View Full Code Here

Examples of org.eclipse.ecf.protocol.msn.Status

  public String getName() {
    return contact.getDisplayName();
  }

  public Mode getMode() {
    Status status = contact.getStatus();
    if (status == Status.ONLINE) {
      return Mode.AVAILABLE;
    } else if (status == Status.BUSY) {
      return Mode.DND;
    } else if (status == Status.APPEAR_OFFLINE) {
View Full Code Here

Examples of org.eclipse.jgit.api.Status

        for (File file : workTreeFilesToDelete)
        {
            FileUtils.deleteQuietly(file);
        }

        Status status = git.status().call();
        if (!status.getAdded().isEmpty() ||
            !status.getChanged().isEmpty() ||
            !status.getMissing().isEmpty() ||
            !status.getRemoved().isEmpty() ||
            !status.getUntracked().isEmpty())
        {
            git.commit().
                setAll(true).
                setAuthor(event.getUserName(), event.getUserEmail()).
                setCommitter("speakeasy", "speakeasy@atlassian.com").
View Full Code Here

Examples of org.eclipse.jgit.transport.RemoteRefUpdate.Status

        rru.setStatus(Status.OK);
  }

  private void updateTrackingRefs() {
    for (final RemoteRefUpdate rru : toPush.values()) {
      final Status status = rru.getStatus();
      if (rru.hasTrackingRefUpdate()
          && (status == Status.UP_TO_DATE || status == Status.OK)) {
        // update local tracking branch only when there is a chance that
        // it has changed; this is possible for:
        // -updated (OK) status,
View Full Code Here

Examples of org.eclipse.orion.server.git.objects.Status

      org.eclipse.jgit.api.Status gitStatus = git.status().call();

      URI baseLocation = getURI(request);
      String relativePath = GitUtils.getRelativePath(path, set.iterator().next().getKey());
      IPath basePath = new Path(relativePath);
      Status status = new Status(baseLocation, db, gitStatus, basePath);
      OrionServlet.writeJSONResponse(request, response, status.toJSON(), JsonURIUnqualificationStrategy.ALL_NO_GIT);
      return true;

    } catch (Exception e) {
      return statusHandler.handleRequest(request, response, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
          "Error generating status response", e));
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Status

    }

    @Override
    public void contribute( final PropertyEditorAssistContext context )
    {
        final Status validation = this.part.validation();
       
        if( validation.children().isEmpty() )
        {
            contribute( context, validation );
        }
        else
        {
            for( Status child : validation.children() )
            {
                contribute( context, child );
            }
        }
    }
View Full Code Here

Examples of org.eclipse.twipse.model.Status

                        getTaskList().getActiveTask();
               
                if(t!=null){
                  TwipsePlugin.getDefault().
                    getClient().postStatusUpdate(
                      new Status(t.getSummary()+" - "+t.getUrl()));
                }
              }
                   
                  }));
                }
View Full Code Here

Examples of org.elasticsearch.river.mongodb.Status

            assertThat(searchResponse.getHits().getTotalHits(), equalTo(1l));

            super.deleteRiver();
            Thread.sleep(wait);

            Status status = MongoDBRiverHelper.getRiverStatus(getNode().client(), getRiver());
            Assert.assertTrue(status == Status.UNKNOWN);
        } catch (Throwable t) {
            logger.error("simpleRiver failed.", t);
            t.printStackTrace();
            throw t;
View Full Code Here

Examples of org.encuestame.utils.enums.Status

            @RequestParam(value = "type", required = false) String type,
            HttpServletRequest request,
            HttpServletResponse response) throws JsonGenerationException,
            JsonMappingException, IOException {
            final String ip = EnMeUtils.getIP(request, EnMePlaceHolderConfigurer.getBooleanProperty("application.proxyPass"));
            final Status status = getFrontService().registerVote(id, TypeSearchResult.getTypeSearchResult(type), ip);
            if (status.equals(Status.SUCCESS)) {
                setSuccesResponse();
            } else {
                setFailedResponse();
            }
            return returnData();
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.