Examples of DObject


Examples of com.threerings.presents.dobj.DObject

            clrec.addBody(joiner);
            return;
        }

        // otherwise see if they sent us the user's oid
        DObject tobj = _omgr.getObject(targetOid);
        if (!(tobj instanceof BodyObject)) {
            log.info("Can't join cluster, missing target",
                "creator", joiner.who(), "targetOid", targetOid);
            throw new InvocationException(NO_SUCH_CLUSTER);
        }
View Full Code Here

Examples of com.threerings.presents.dobj.DObject

        removeTableFromLobby(table.tableId);

        // remove the listener too so we do not get a request later on to update the occupants or
        // unmap this table
        if (removed != null) {
            DObject gameObj = _omgr.getObject(table.gameOid);
            if (gameObj != null) {
                gameObj.removeListener(_gameListener);
            }
        }
    }
View Full Code Here

Examples of com.threerings.presents.dobj.DObject

    // from PlayManager
    public BodyObject checkWritePermission (ClientObject client, int playerId)
    {
        // subclasses can be more restrictive here
        DObject player = _omgr.getObject(playerId);
        return (player instanceof BodyObject) ? (BodyObject) player : null;
    }
View Full Code Here

Examples of com.threerings.presents.dobj.DObject

        BodyObject user = getPlayer(pidx);
        if (user == null) {
            return; // body object can be null for ai players
        }

        DObject place = _omgr.getObject(user.getPlaceOid());
        if (place != null) {
            place.postMessage(PLAYER_KNOCKED_OUT, new Object[] { new int[] { user.getOid() } });
        }
    }
View Full Code Here

Examples of com.threerings.presents.dobj.DObject

        Object[] args = new Object[] { winners.toIntArray(), losers.toIntArray() };

        // now send a message event to each room
        for (int ii=0, nn = places.size(); ii < nn; ii++) {
            DObject place = _omgr.getObject(places.get(ii));
            if (place != null) {
                place.postMessage(WINNERS_AND_LOSERS, args);
            }
        }
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        root = new CMSObjectBuilder(PREFIX_ROOT).namespace().child(child1).child(child2).build();
    }

    @Test
    public void testDObjectFieldsOnline() {
        DObject root = onlineAdapter.wrapAsDObject(rootStripped);
        assertEquals(PREFIX_ROOT + LOCAL_NAME, root.getName());
        assertEquals(PREFIX_ROOT + NAMESPACE, root.getNamespace());
        assertEquals(PREFIX_ROOT + PATH, root.getPath());
        assertEquals(PREFIX_ROOT + UNIQUE_REF, root.getID());
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        assertEquals(PREFIX_ROOT + UNIQUE_REF, root.getID());
    }

    @Test
    public void testDObjectFieldsOffline() {
        DObject root = sOfflineAdapter.wrapAsDObject(rootStripped);
        assertEquals(PREFIX_ROOT + LOCAL_NAME, root.getName());
        assertEquals(PREFIX_ROOT + NAMESPACE, root.getNamespace());
        assertEquals(PREFIX_ROOT + PATH, root.getPath());
        assertEquals(PREFIX_ROOT + UNIQUE_REF, root.getID());

    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

    }

    @Test
    public void testDObjectParentOnline() throws RepositoryAccessException {
        DObject root = onlineAdapter.wrapAsDObject(rootStripped);
        expectedException.expect(RepositoryAccessException.class);
        root.getParent();
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        root.getParent();
    }

    @Test
    public void testDObjectParentOffline() throws RepositoryAccessException {
        DObject root = sOfflineAdapter.wrapAsDObject(rootStripped);
        expectedException.expect(RepositoryAccessException.class);
        root.getParent();
    }
View Full Code Here

Examples of org.apache.stanbol.cmsadapter.servicesapi.model.web.decorated.DObject

        root.getParent();
    }

    @Test
    public void testDObjectChildsOnline() throws RepositoryAccessException {
        DObject root = onlineAdapter.wrapAsDObject(rootStripped);
        List<DObject> children = root.getChildren();
        assertEquals(2, children.size());
    }
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.