Package org.sonatype.nexus.componentviews

Examples of org.sonatype.nexus.componentviews.ViewId


    final String viewName = document.field(P_VIEWNAME, OType.STRING);
    final String internalId = document.field(P_VIEWID, OType.STRING);
    final String factoryName = document.field(P_FACTORYNAME, OType.STRING);
    final Map<String, Object> config = document.field(P_CONFIGURATION, OType.EMBEDDEDMAP);
    ViewConfig entity = new ViewConfig(new ViewId(viewName, internalId), factoryName, config);

    return entity;
  }
View Full Code Here


    return recordIdObfuscator.decode(entityType, id.toString());
  }

  @Override
  public ViewId createId(final String name) {
    return new ViewId(name, UUID.randomUUID().toString());
  }
View Full Code Here

  private static final String PROXY_INTERNAL_ID = "bar_34wfe32434";

  @Override
  public void contributeTo(final ViewConfigStore viewConfigStore) throws IOException {

    final ViewConfig hostedViewConfig = new ViewConfig(new ViewId(VIEW_NAME, INTERNAL_ID),
        RawBinaryViewFactory.FACTORY_NAME,
        Collections.<String, Object>emptyMap());

    addIfAbsent(hostedViewConfig, viewConfigStore);

    final ViewConfig proxyViewConfig = new ViewConfig(new ViewId(PROXY_VIEW_NAME, PROXY_INTERNAL_ID),
        RawBinaryProxyViewFactory.FACTORY_NAME,
        ImmutableMap.of("sourceName", (Object) RawSourceConfigContribution.SOURCE_NAME));

    addIfAbsent(proxyViewConfig, viewConfigStore);
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.componentviews.ViewId

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.