*
* ECOMP is a trademark and service mark of AT&T Intellectual Property.
*/
-package org.onap.aai.sparky.synchronizer.entity;
+package org.onap.aai.sparky.sync.entity;
import java.util.HashMap;
import java.util.Map;
-import org.onap.aai.sparky.config.oxm.OxmModelLoader;
import org.onap.aai.sparky.util.NodeUtils;
import com.fasterxml.jackson.databind.ObjectMapper;
super();
}
- /**
- * Instantiates a new aggregation entity.
- *
- * @param loader the loader
- */
- public AggregationEntity(OxmModelLoader loader) {
- super(loader);
- }
-
/*
* (non-Javadoc)
*
- * @see org.onap.aai.sparky.synchronizer.entity.IndexDocument#deriveFields()
+ * @see org.openecomp.sparky.synchronizer.entity.IndexDocument#deriveFields()
*/
@Override
public void deriveFields() {
}
@Override
- public String getIndexDocumentJson() {
+ public String getAsJson() {
ObjectNode rootNode = mapper.createObjectNode();
rootNode.put("link", this.getLink());
rootNode.put("lastmodTimestamp", this.getEntityTimeStamp());
return rootNode.toString();
}
- /**
- * @return the attributes
- */
- public Map<String, String> getAttributes() {
- return attributes;
- }
-
- /**
- * @param attributes the attributes to set
- */
- public void setAttributes(Map<String, String> attributes) {
- this.attributes = attributes;
- }
-
- /**
- * @return the mapper
- */
- public ObjectMapper getMapper() {
- return mapper;
- }
-
- /**
- * @param mapper the mapper to set
- */
- public void setMapper(ObjectMapper mapper) {
- this.mapper = mapper;
- }
-
- @Override
- public ObjectNode getBulkImportEntity() {
- // TODO Auto-generated method stub
- return null;
- }
-
/*
* (non-Javadoc)
*