Examples of changeState()


Examples of org.apache.isis.core.metamodel.adapter.ObjectAdapter.changeState()

                adapterManager.remapAsPersistent(adapter);
            }

            if (adapter.getResolveState().canChangeTo(ResolveState.RESOLVING)) {
                adapter.changeState(ResolveState.RESOLVING);
                adapter.changeState(ResolveState.RESOLVED);
            }
            if (existingOid == null) {
                final Oid persistentOid = adapter.getOid();
                registerService(serviceId, persistentOid);
            }
View Full Code Here

Examples of org.apache.isis.core.metamodel.adapter.ObjectAdapter.changeState()

            LOG.debug("creating aggregated instance of " + specification);
        }
        final Object pojo = specification.createAggregatedObject(parent, CreationMode.INITIALIZE);
        final ObjectAdapter adapter = getAdapterManager().adapterFor(pojo);
        if (adapter.getResolveState().isGhost()) {
            adapter.changeState(ResolveState.RESOLVING);
        }
        if (adapter.getResolveState().isValidToChangeTo(ResolveState.RESOLVED)) {
            adapter.changeState(ResolveState.RESOLVED);
        }
        return adapter;
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.adapterfactory.pojo.PojoAdapter.changeState()

     */
    protected abstract PersistAlgorithm createPersistAlgorithm();

    public void testMakePersistentSkipsAggregatedObjects() {
        final PojoAdapter aggregatedObject = new PojoAdapter(new Object(), SerialOid.createTransient(1));
        aggregatedObject.changeState(ResolveState.VALUE);
        persistAlgorithm.makePersistent(aggregatedObject, adder);
        assertEquals(0, adder.getPersistedObjects().size());
    }

}
View Full Code Here

Examples of org.apache.qpid.client.state.AMQStateManager.changeState()

            checkSendingMessage();

            // Set StateManager to manager that ignores Close-oks
            AMQProtocolSession protocolSession = ((AMQConnection) _connection).getProtocolHandler().getProtocolSession();
            AMQStateManager newStateManager = new NoCloseOKStateManager(protocolSession);
            newStateManager.changeState(oldStateManager.getCurrentState());

            ((AMQConnection) _connection).getProtocolHandler().setStateManager(newStateManager);

            final int TEST_CHANNEL = 1;
            _logger.info("Testing Channel(" + TEST_CHANNEL + ") Creation");
View Full Code Here

Examples of org.apache.qpid.client.state.AMQStateManager.changeState()

                if (existingStateManager.getCurrentState() != AMQState.CONNECTION_OPEN)
                {
                    // Clear the state of the previous state manager as it may
                    // have received an exception
                    existingStateManager.clearLastException();
                    existingStateManager.changeState(AMQState.CONNECTION_OPEN);
                }


                //Restore Existing State Manager
                _amqProtocolHandler.setStateManager(existingStateManager);
View Full Code Here

Examples of org.apache.qpid.client.state.AMQStateManager.changeState()

                if (existingStateManager.getCurrentState() != AMQState.CONNECTION_OPEN)
                {
                    // Clear the state of the previous state manager as it may
                    // have received an exception
                    existingStateManager.clearLastException();
                    existingStateManager.changeState(AMQState.CONNECTION_OPEN);
                }


                //Restore Existing State Manager
                _amqProtocolHandler.setStateManager(existingStateManager);
View Full Code Here

Examples of org.drools.guvnor.client.rpc.AssetServiceAsync.changeState()

        if ( isPackage ) {
            assetService.changePackageState( uuid,
                                             newStatus,
                                             createGenericCallbackForChaneState() );
        } else {
            assetService.changeState( uuid,
                                      newStatus,
                                      createGenericCallbackForChaneState() );
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.changeState()

        impl.createState( "testState" );

        RuleAsset asset = impl.loadRuleAsset( ruleUUID );
        assertEquals( StateItem.DRAFT_STATE_NAME,
                      asset.metaData.status );
        impl.changeState( ruleUUID,
                          "testState",
                          false );
        asset = impl.loadRuleAsset( ruleUUID );
        assertEquals( "testState",
                      asset.metaData.status );
View Full Code Here

Examples of org.drools.guvnor.client.rpc.RepositoryService.changeState()

        asset = impl.loadRuleAsset( ruleUUID2 );
        assertEquals( StateItem.DRAFT_STATE_NAME,
                      asset.metaData.status );

        impl.createState( "testState2" );
        impl.changeState( packagUUID,
                          "testState2",
                          true );

        PackageConfigData pkg = impl.loadPackageConfig( packagUUID );
        assertEquals( "testState2",
View Full Code Here

Examples of org.jboss.cache.aop.test.propagation.PropagationRule.changeState()

   public void stateChange(String parentFdn, long itemId, long newState) {
      Node node = findNode(parentFdn);
      if (node != null) {
         PropagationRule rule = node.getPropagationRule();
         rule.changeState(node, itemId, newState);
      }
   }

   public Node findNode(String fdn) {
      return (Node) nodeMap_.get(fdn);
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.