Package org.platformlayer.ops

Examples of org.platformlayer.ops.OpsContext


    if (serviceProvider == null) {
      raiseNotFound();
    }

    OpsContextBuilder opsContextBuilder = opsContextBuilderFactory.get();
    final OpsContext opsContext = opsContextBuilder.buildTemporaryOpsContext(serviceProvider.getServiceType(),
        getProjectAuthorization());

    PublicKey publicKey = OpsContext.runInContext(opsContext, new CheckedCallable<PublicKey, Exception>() {
      @Override
      public PublicKey call() throws Exception {
View Full Code Here


  public Object getExtensionsResource() throws Exception {
    final ServiceProvider serviceProvider = getServiceProvider();

    OpsContextBuilder opsContextBuilder = objectInjector.getInstance(OpsContextBuilder.class);

    final OpsContext opsContext = opsContextBuilder.buildTemporaryOpsContext(getServiceType(),
        getProjectAuthorization());

    Object extensionResource = OpsContext.runInContext(opsContext, new CheckedCallable<Object, Exception>() {
      @Override
      public Object call() throws Exception {
View Full Code Here

  @Path("extensions")
  public Object getExtensionsResource() throws Exception {
    OpsContextBuilder opsContextBuilder = objectInjector.getInstance(OpsContextBuilder.class);

    final OpsContext opsContext = opsContextBuilder.buildTemporaryOpsContext(getServiceType(),
        getProjectAuthorization());

    Object extensionResource = OpsContext.runInContext(opsContext, new CheckedCallable<Object, Exception>() {
      @Override
      public Object call() throws Exception {
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.OpsContext

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.