Examples of ProjectId


Examples of edu.stanford.bmir.protege.web.shared.project.ProjectId

    }

    @SuppressWarnings("unchecked")
    public <A extends Action<R>, R extends Result> void execute(A action, final AsyncCallback<R> callback) {
        if(action instanceof HasProjectId) {
            ProjectId projectId = ((HasProjectId) action).getProjectId();
            ResultCache resultCache = getResultCache(projectId);
            Optional<R> result = resultCache.getCachedResult(action);
            if(result.isPresent()) {
                GWT.log("[DISPATCH] Using cached result (" + action + ")");
                callback.onSuccess(result.get());
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.project.ProjectId

    public void dispose() {
    }


    private void printBrowserTextReferenceWarningMessage(String referenceName) {
        ProjectId projectId = project.getProjectId();
        WebProtegeLoggerManager.get(RenderingManager.class).info(projectId, "Could not find entity by name \"%s\".  This name may be the browser text rather than an entity IRI.", referenceName);
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.project.ProjectId

     */
    private OWLAPIProject getProject(String projectName) {
        if (projectName == null) {
            throw new NullPointerException("projectName must not be null");
        }
        ProjectId projectId = ProjectId.get(projectName);
        // TODO: Log
        return getProject(projectId);
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.project.ProjectId

     * Gets the root ontology for a given project name.
     * @param projectName The name of the project.
     * @return The root ontology. Not <code>null</code>.
     */
    private OWLOntology getOntology(String projectName) {
        ProjectId projectId = ProjectId.get(projectName);
        OWLAPIProjectManager pm = OWLAPIProjectManager.getProjectManager();
        return pm.getProject(projectId).getRootOntology();
    }
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

    buildRules(config);
  }

  public void addDefault(TypedPlatformLayerClient defaultClient) {
    FederationKey host = FederationKey.LOCAL;
    ProjectId project = defaultClient.getProject();
    FederationMapping mapKey = new FederationMapping(host, project);

    MappedTarget target = new MappedTarget();
    target.client = defaultClient;
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

  }

  private void buildTargetMap(FederationConfiguration config) {
    for (PlatformLayerConnectionConfiguration child : config.systems) {
      FederationKey host = FederationKey.build(child.authenticationEndpoint);
      ProjectId project = new ProjectId(child.tenant);
      FederationMapping key = new FederationMapping(host, project);

      MappedTarget target = new MappedTarget();
      target.configuration = child;
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

          if (rule.targetKey != null) {
            throw new IllegalStateException();
          }

          FederationKey host = FederationKey.build(system.authenticationEndpoint);
          ProjectId project = new ProjectId(system.tenant);
          rule.targetKey = new FederationMapping(host, project);
        }
      }

      if (rule.targetKey == null) {
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

    }
  }

  private FederationMapping toKey(PlatformLayerKey original, Rule rule) {
    FederationKey targetHost = original.getHost();
    ProjectId targetProject = original.getProject();

    if (rule.targetKey != null) {
      MappedTarget target = targetMap.get(rule.targetKey);
      if (target == null) {
        throw new IllegalStateException("Cannot find target: " + rule.targetKey);
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

    FederationKey targetHost = original.getHost();
    if (targetHost == null) {
      targetHost = FederationKey.LOCAL;
    }

    ProjectId targetProject = original.getProject();

    return new FederationMapping(targetHost, targetProject);
  }
View Full Code Here

Examples of org.platformlayer.ids.ProjectId

public class Utils {
  public static String formatUrl(PlatformLayerCliContext context, PlatformLayerKey key) {
    String text = key.getUrl();

    if (key.getHost() == null) {
      ProjectId project = context.getProject();
      if (Objects.equal(project, context.getProject())) {
        text = "pl:" + key.getItemTypeString() + "/" + key.getItemIdString();
      }
    }
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.