Examples of Identification


Examples of org.persvr.data.Identification

                    }
                    PersistableObject.enableSecurity(security);
                    writeNewLine(writer,commaNeeded);
                    writer.write(JSON.quote(key));
                    writer.write(":");
                    Identification valueId;
                    if(value instanceof Identification)
                      valueId = (Identification)value;
                    else if(value instanceof Persistable){
                      valueId = ((Persistable)value).getId();
                    }
View Full Code Here

Examples of org.persvr.data.Identification

  }
  protected Object convertJsonToJavaScript(Object value, String id) {
    String fullId = (id.startsWith("http://") || id.startsWith("https://")) ? id : (getId() + '/' + id);
    if (value instanceof Map || value instanceof List){
      if (value instanceof Map && ((Map)value).containsKey("$ref")){
          Identification refId = Identification.idForRelativeString(fullId, (String) ((Map)value).get("$ref"));
          if(refId instanceof ObjectId && ((ObjectId)refId).subObjectId == null){
            refId = ObjectId.idForObject(DataSourceManager.getMetaClassSource(), ((ObjectId)refId).source.getId());
          }
          return refId;
      }
      Identification objId;
      if (value instanceof Map && ((Map)value).containsKey("id") && useIds())
          objId= Identification.idForRelativeString(fullId, (String) ((Map)value).get("id"));
      else
        objId = ObjectId.idForObject(this, id, true);
      if(!(objId instanceof ObjectId))
View Full Code Here

Examples of org.persvr.data.Identification

    }
  }
  protected Object mapJson(PersistableInitializer initializer, final Object object, final String objectId) {
    // the id might resolve differently after downloading a class
    ObjectId objId = ObjectId.idForObject(this, objectId);
    Identification newId = Identification.idForString(getId() + '/' + objectId);

    if(newId instanceof ObjectId && objId.source != newId.source){
      objId.source = newId.source;
      objId.subObjectId = newId.subObjectId;
      return ((HttpJsonSource)newId.source).mapJson(initializer, object, newId.subObjectId);
View Full Code Here

Examples of org.rhq.enterprise.communications.command.impl.identify.Identification

    public CommandResponse execute(Command command, InputStream in, OutputStream out) {
        IdentifyCommand identifyCommand = new IdentifyCommand(command);

        String our_type = null;
        InvokerLocator locator = null;
        Identification our_ident;

        try {
            // from the connector, get the locator URI and find the type parameter in that URI
            ConnectorMBean connector = getConnector();
            locator = connector.getLocator();
View Full Code Here

Examples of uk.ac.ebi.pride.jaxb.model.Identification

        for (String id : ids) {

            // @TODO: implement me!
            progressDialog.increasePrimaryProgressCounter();

            Identification identification = prideXmlReader.getIdentById(id);
            List<PeptideItem> peptides = identification.getPeptideItem();

            for (PeptideItem peptide : peptides) {
                String residue = peptide.getSequence().substring(peptide.getSequence().length() - 1);

                if (!peptideLastResidues.containsKey(residue)) {
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.