Examples of ObjectId


Examples of com.emc.atmos.api.ObjectId

public class ObjectIdAdapter extends XmlAdapter<String, ObjectId> {

    @Override
    public ObjectId unmarshal( String s ) throws Exception {
        return new ObjectId( s );
    }
View Full Code Here

Examples of com.emc.esu.api.ObjectId

           
            l4j.debug( "Found " + children.size() + " objects" );
            for( Iterator i=children.iterator(); i.hasNext(); ) {
                Object o = i.next();
                if( o instanceof Element ) {
                    ObjectId oid = new ObjectId( ((Element)o).getText() );
                    l4j.debug( oid.toString() );
                    objs.add( oid );
                } else {
                    l4j.debug( o + " is not an Element!" );
                }
            }
View Full Code Here

Examples of com.ibm.wps.util.ObjectID

        // send message across portlet application
        boolean across = false;
        if (message instanceof DefaultPortletMessage) across = true;

        ObjectID sourcePiid = sourceRequest.getPortletInstanceEntry().getPiid();
        ObjectID sourceAid = sourceConfig.getPortletEntry().getApplication().getAid();

        // send to all portlets of the same portlet application on this page
        if (destinationPortletName==null) {

            // iterate all portlets on the page
            Iterator iterator = allPortletsOnPage.iterator();
            while (iterator.hasNext()) {
                PortletInstanceEntry entry = (PortletInstanceEntry)iterator.next();

                PortletConfigImpl portletConfig =
                    (PortletConfigImpl)evtEnv.getPortletConfig(entry.getConcretePortlet());

                // check if the portlet is not the same portlet as the sender
                if (!sourcePiid.equals(entry.getPiid())) {
                    // check if the portlet is in the same portlet application or
                    // the message should be distributed across applications
                    if ((sourceAid.equals(portletConfig.getPortletEntry().getApplication().getAid())) ||
                        (across)) {

                        PortletRequestImpl portletRequest = new PortletRequestImpl( entry,
                                                                                    servletRequest,
                                                                                    portletConfig,
                                                                                    provider,
                                                                                    true );
                        MessageEventImpl messageEvent = new MessageEventImpl(entry,
                                                                             portletRequest,
                                                                             message);
                        messageEvent.prepare(evtEnv);

                    }
                }
            }

        }
        else { // send to the portlet with the same name of the same portlet application on this page
            // iterate all portlets on the page
            Iterator iterator = allPortletsOnPage.iterator();
            while (iterator.hasNext()) {
                PortletInstanceEntry entry = (PortletInstanceEntry)iterator.next();

                PortletConfigImpl portletConfig =
                    (PortletConfigImpl)evtEnv.getPortletConfig(entry.getConcretePortlet());

                // check if the portlet is the destination portlet, but not the same
                // virtual instance
                if ((portletConfig.getName().equals(destinationPortletName)) &&
                    (!sourcePiid.equals(entry.getPiid()))) {
                    // check if the portlet is in the same portlet application or
                    // the message should be distributed across applications
                    if ((sourceAid.equals(portletConfig.getPortletEntry().getApplication().getAid())) ||
                        (across)) {

                        PortletRequestImpl portletRequest = new PortletRequestImpl( entry,
                                                                                    servletRequest,
                                                                                    portletConfig,
View Full Code Here

Examples of com.massivecraft.mcore.xlib.bson.types.ObjectId

            case NUMBER:
                return _buf.getDouble( _dataStart );
      case NUMBER_INT:
    return _buf.getInt( _dataStart );
      case OID:
    return new ObjectId( _buf.getInt( _dataStart ) , _buf.getInt( _dataStart + 4 ) , _buf.getInt( _dataStart + 8 ) );
      case CODE:
            case CODE_W_SCOPE:
                throw new RuntimeException( "can't handle code" );
      case SYMBOL:
      case STRING:
View Full Code Here

Examples of com.mongodb.ObjectId

    private CenterAbstractFactory getCenterFactory() {
        return CenterFactoryBuilder.getInstance().getFactory();
    }

    private void cleanCenter(DBCollection coll, String id) {
        DBObject obj = coll.findOne(new ObjectId(id),null);
        if (obj != null) {
            coll.remove(obj);
        }
    }
View Full Code Here

Examples of com.opengamma.id.ObjectId

  public void test_ReplaceVersion_of_some_middle_version() {
    Clock origClock = _exgMaster.getClock();
    try {
      Instant now = Instant.now();

      ObjectId baseOid = setupTestData(now);
      _exgMaster.setClock(Clock.fixed(now.plus(2, HOURS), ZoneOffset.UTC));
      ExchangeDocument latestDoc = _exgMaster.get(baseOid, VersionCorrection.LATEST);
      Instant latestFrom = latestDoc.getVersionFromInstant();

      final ExternalIdBundle bundle = ExternalIdBundle.of("B", "B0");
View Full Code Here

Examples of com.sun.corba.se.spi.ior.ObjectId

        ObjectKeyTemplate oktemp = prof.getObjectKeyTemplate() ;
        this.scid = oktemp.getSubcontractId() ;
        RequestDispatcherRegistry sreg = orb.getRequestDispatcherRegistry() ;
        oaf = sreg.getObjectAdapterFactory( scid ) ;
        oaid = oktemp.getObjectAdapterId() ;
        ObjectId oid = prof.getObjectId() ;
        objectId = oid.getId() ;
    }
View Full Code Here

Examples of de.undercouch.bson4jackson.types.ObjectId

    o.put("Regex", p);
   
    Map<?, ?> data = parseBsonObject(o);
    assertEquals(new Timestamp(0xAABB, 0xCCDD), data.get("Timestamp"));
    assertEquals(new de.undercouch.bson4jackson.types.Symbol("Test"), data.get("Symbol"));
    ObjectId oid = (ObjectId)data.get("ObjectId");
    assertEquals(Integer.MAX_VALUE, oid.getTime());
    assertEquals(-2, oid.getMachine());
    assertEquals(Integer.MIN_VALUE, oid.getInc());
    Pattern p2 = (Pattern)data.get("Regex");
    assertEquals(p.flags(), p2.flags());
    assertEquals(p.pattern(), p2.pattern());
  }
View Full Code Here

Examples of gnu.classpath.jdwp.id.ObjectId

            else if (obj instanceof Class)
              os.writeByte(JdwpConstants.Tag.CLASS_OBJECT);
            else
              os.writeByte(JdwpConstants.Tag.OBJECT);
          }
        ObjectId oid = VMIdManager.getDefault().getObjectId(obj);
        oid.write(os);
      }
  }
View Full Code Here

Examples of mungbean.ObjectId

@RunWith(JDaveRunner.class)
public class GridFsStorageIntegrationTest extends Specification<GridFsStorage> {
    public class WithStorage {

        public GridFsStorage create() {
            return new Mungbean(new Settings(), new Server("localhost", 27017)).openDatabase(new ObjectId().toHex()).openStorage("foobar");
        }
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.