Package com.sun.sgs.auth

Examples of com.sun.sgs.auth.Identity


        // get the current transaction state, and add the change to it
        ctxFactory.joinTransaction().addChange(change);
    }

    public void addRootToUniverse(CellMO rootCellMO) {
        final Identity identity = txnProxy.getCurrentOwner();
        scheduleChange(new Change(rootCellMO.getCellID(), null, null) {
            public void run() {
                if (logger.isLoggable(Level.FINE))
                    logger.log(Level.FINE, "RUN addRootToUniverse");
                universe.addRootSpatialCell(cellID, identity);
View Full Code Here


        });
    }

    public void createCell(CellMO cellMO, boolean notify) {
        final Class cellClazz = cellMO.getClass();
        final Identity identity = txnProxy.getCurrentOwner();
        final BigInteger dsID = AppContext.getDataManager().createReference(cellMO).getId();

        scheduleChange(new Change(cellMO.getCellID(), cellMO.getLocalBounds(), cellMO.getLocalTransform(null)) {
            public void run() {
                SpatialCell sc = universe.createSpatialCell(cellID, dsID, cellClazz);
View Full Code Here

            listener.cellRemoved(cell);
        }
    }

    public void addChild(CellMO parent, CellMO child) {
        final Identity identity = txnProxy.getCurrentOwner();
        scheduleChange(new Change(parent.getCellID(), child.getCellID()) {
            public void run() {
                if (logger.isLoggable(Level.FINE))
                    logger.log(Level.FINE, "RUN addChild");
                SpatialCell parent = universe.getSpatialCell(cellID);
View Full Code Here

            }
        });
    }

    public void setLocalTransform(CellMO cellMO, CellTransform localTransform) {
        final Identity identity = txnProxy.getCurrentOwner();

        /*
        try {
            throw new Exception("Trace");
        } catch (Exception ex) {
View Full Code Here

        });
    }

    public void viewLogin(ViewCellMO viewCell) {
        final BigInteger cellCacheId = AppContext.getDataManager().createReference( viewCell.getCellCache()).getId();
        final Identity identity = txnProxy.getCurrentOwner();

        scheduleChange(new Change(viewCell.getCellID(), null, null) {
            public void run() {
                universe.viewLogin(cellID, cellCacheId, identity);
            }
View Full Code Here

            }
        });
    }

    public void viewLogout(ViewCellMO viewCell) {
        final Identity identity = txnProxy.getCurrentOwner();

        scheduleChange(new Change(viewCell.getCellID(), null, null) {
            public void run() {
                universe.viewLogout(cellID, identity);
            }
View Full Code Here

    public WonderlandIdentity getClientID() {
        // Use the TransactionProxy to access the client's identity.  We do
        // this by snagging a copy of the CurrentOwner object which will
        // permit us to access the client's WonderlandIdentity object.
        Identity id = transactionProxy.getCurrentOwner();
        if (id instanceof WonderlandServerIdentity) {
            return ((WonderlandServerIdentity) id).getIdentity();
        } else {
            return null;
        }
View Full Code Here

    }

    public void doSecure(ResourceMap request, SecureTask task) {
        // figure out the identity we are running as, using the client
        // auth service
        Identity curId = txnProxy.getCurrentOwner();
        if (!(curId instanceof WonderlandServerIdentity)) {
            // what should we do here?  Grant access?  Deny access?
            logger.log(Level.SEVERE, "Cannot apply security for user " + curId);
            task.run(request);
            return;
View Full Code Here

    OPTIMISTIC_WRITE_LOCKS, Boolean.FALSE);
      trackStaleObjects = wrappedProps.getBooleanProperty(
    TRACK_STALE_OBJECTS_PROPERTY, Boolean.FALSE);
      TaskScheduler taskScheduler =
    systemRegistry.getComponent(TaskScheduler.class);
      Identity taskOwner = txnProxy.getCurrentOwner();
      scheduler = new DelegatingScheduler(taskScheduler, taskOwner);
            NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
                                             NodeType.class,
                                             NodeType.singleNode);
View Full Code Here

        throws InterruptedException
    {
        logger.log(Level.FINEST, "starting a new transactional task");

        // store the current owner, and then push the new thread detail
        Identity parent = ContextResolver.getCurrentOwner();
        ContextResolver.setTaskState(kernelContext, task.getOwner());

        try {
            // keep trying to run the task until we succeed, tracking how
            // many tries it actually took
View Full Code Here

TOP

Related Classes of com.sun.sgs.auth.Identity

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.