congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
KObject.getClusterId
Code IndexAdd Tabnine to your IDE (free)

How to use
getClusterId
method
in
org.uberfire.ext.metadata.model.KObject

Best Java code snippets using org.uberfire.ext.metadata.model.KObject.getClusterId (Showing top 20 results out of 315)

origin: org.uberfire/uberfire-metadata-backend-infinispan

public Schema buildSchema(KObject kObject,
             Set<Message> messages) {
  return new Schema(kObject.getClusterId(),
           ORG_KIE,
           messages);
}
origin: kiegroup/appformer

public Schema buildSchema(KObject kObject,
             Set<Message> messages) {
  return new Schema(kObject.getClusterId(),
           ORG_KIE,
           messages);
}
origin: org.kie.workbench.services/kie-wb-common-refactoring-backend

private static String generateUniqueIdentifierForKObject(final KObject kObject) {
  return kObject.getClusterId() + kObject.getKey();
}
origin: org.uberfire/uberfire-metadata-backend-elasticsearch

private void deleteIfExists(KObject object) {
  if (this.exists(object.getClusterId(),
          object.getId())) {
    this.delete(object.getClusterId(),
          object.getId());
  }
}
origin: kiegroup/appformer

private void deleteIfExists(KObject object) {
  if (this.exists(object.getClusterId(),
          object.getId())) {
    this.delete(object.getClusterId(),
          object.getId());
  }
}
origin: kiegroup/appformer

private Schema buildSchema(KObject kObject) {
  return new Schema(kObject.getClusterId(),
           ORG_KIE,
           this.buildMessages(kObject));
}
origin: org.uberfire/uberfire-metadata-backend-infinispan

private Schema buildSchema(KObject kObject) {
  return new Schema(kObject.getClusterId(),
           ORG_KIE,
           this.buildMessages(kObject));
}
origin: org.uberfire/uberfire-metadata-commons-io

@Override
public void index(KObject kObject) {
  KCluster index = new KClusterImpl(kObject.getClusterId());
  doOrDeferAction(index,
          new NewlyIndexedEvent(kObject));
}
origin: kiegroup/appformer

@Override
public void index(KObject kObject) {
  KCluster index = new KClusterImpl(kObject.getClusterId());
  doOrDeferAction(index,
          new NewlyIndexedEvent(kObject));
}
origin: org.uberfire/uberfire-metadata-backend-infinispan

@Override
public void index(KObject kObject) {
  this.schemaStore.updateSchema(kObject);
  this.infinispanContext.getCache(kObject.getClusterId()).put(kObject.getId(),
                                kObject);
}
origin: kiegroup/appformer

@Override
public boolean equals(final Object obj) {
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof KObject)) {
    return false;
  }
  final KObject kobj = (KObject) obj;
  return getClusterId().equals(kobj.getClusterId()) &&
      getId().equals(kobj.getId()) &&
      getKey().equals(kobj.getKey()) &&
      getType().getName().equals(kobj.getType().getName());
}
origin: kiegroup/appformer

@Override
public void index(KObject kObject) {
  this.schemaStore.updateSchema(kObject);
  this.infinispanContext.getCache(kObject.getClusterId()).put(kObject.getId(),
                                kObject);
}
origin: org.uberfire/uberfire-metadata-backend-elasticsearch

public void updateMetaModel(KObject object,
              MetaObject metaObject) {
  List<MetaProperty> dirtyProperties = new ArrayList<>();
  Optional<MappingMetaData> mappingOptional = this.indexProvider.getMapping(object.getClusterId(),
                                       object.getType().getName());
  if (!mappingOptional.isPresent()) {
    this.indexProvider.putMapping(object.getClusterId(),
                   object.getType().getName(),
                   metaObject);
  } else {
    Map<String, Object> mapping = mappingOptional.get().getSourceAsMap();
    Optional.ofNullable(object.getProperties())
        .ifPresent(kProperties -> {
          for (final KProperty property : object.getProperties()) {
            Object config = mapping.get(property.getName());
            if (config == null) {
              Optional<MetaProperty> prop = metaObject.getProperty(property.getName());
              prop.ifPresent(metaProperty -> dirtyProperties.add(metaProperty));
            }
          }
        });
    this.indexProvider.putMapping(object.getClusterId(),
                   object.getType().getName(),
                   dirtyProperties);
  }
}
origin: org.uberfire/uberfire-metadata-backend-infinispan

@Override
public void rename(String index,
          String id,
          KObject to) {
  checkNotEmpty("from",
         index);
  checkNotEmpty("id",
         id);
  checkNotNull("to",
         to);
  checkNotEmpty("clusterId",
         to.getClusterId());
  checkCondition("renames are allowed only from same cluster",
          to.getClusterId().equals(index));
  if (this.exists(index,
          id)) {
    this.delete(index,
          id);
    this.index(to);
  }
}
origin: org.uberfire/uberfire-metadata-backend-elasticsearch

@Override
public void rename(String index,
          String id,
          KObject to) {
  checkNotEmpty("from",
         index);
  checkNotEmpty("id",
         id);
  checkNotNull("to",
         to);
  checkNotEmpty("clusterId",
         to.getClusterId());
  checkCondition("renames are allowed only from same cluster",
          to.getClusterId().equals(index));
  if (this.exists(index,
          id)) {
    this.delete(index,
          id);
    this.index(to);
  }
}
origin: kiegroup/appformer

@Override
public void rename(String index,
          String id,
          KObject to) {
  checkNotEmpty("from",
         index);
  checkNotEmpty("id",
         id);
  checkNotNull("to",
         to);
  checkNotEmpty("clusterId",
         to.getClusterId());
  checkCondition("renames are allowed only from same cluster",
          to.getClusterId().equals(index));
  if (this.exists(index,
          id)) {
    this.delete(index,
          id);
    this.index(to);
  }
}
origin: kiegroup/appformer

@Override
public void rename(String index,
          String id,
          KObject to) {
  checkNotEmpty("from",
         index);
  checkNotEmpty("id",
         id);
  checkNotNull("to",
         to);
  checkNotEmpty("clusterId",
         to.getClusterId());
  checkCondition("renames are allowed only from same cluster",
          to.getClusterId().equals(index));
  if (this.exists(index,
          id)) {
    this.delete(index,
          id);
    this.index(to);
  }
}
origin: kiegroup/appformer

@Override
public void rename(String index,
          String id,
          KObject to) {
  checkNotNull("from",
         index);
  checkNotNull("to",
         to);
  checkCondition("renames are allowed only from same cluster",
          index.equals(to.getClusterId()));
  LuceneIndex luceneIndex = ((LuceneIndex) indexManager.get(new KClusterImpl(index)));
  luceneIndex.rename(id,
            newDocument(to));
}
origin: org.uberfire/uberfire-metadata-commons-io

@Override
public void rename(KObjectKey from,
          KObject to) {
  checkNotNull("from",
         from);
  checkNotNull("to",
         to);
  checkCondition("renames are allowed only from same cluster",
          from.getClusterId().equals(to.getClusterId()));
  KCluster index = new KClusterImpl(from.getClusterId());
  doOrDeferAction(index,
          new RenamedEvent(from,
                   to));
}
origin: kiegroup/appformer

@Override
public void rename(KObjectKey from,
          KObject to) {
  checkNotNull("from",
         from);
  checkNotNull("to",
         to);
  checkCondition("renames are allowed only from same cluster",
          from.getClusterId().equals(to.getClusterId()));
  KCluster index = new KClusterImpl(from.getClusterId());
  doOrDeferAction(index,
          new RenamedEvent(from,
                   to));
}
org.uberfire.ext.metadata.modelKObjectgetClusterId

Popular methods of KObject

  • getKey
  • getProperties
  • getType
  • fullText
  • getId
  • getSegmentId

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • setContentView (Activity)
  • startActivity (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Path (java.nio.file)
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JButton (javax.swing)
  • JList (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now