mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 03:53:07 +00:00
DS-1241 Statistics Implementation in Elastic Search
Copied in Implementation of Elastic Search, and wired it into DSpace. I changed the ES Node to be a nodeClient, and also one that runs locally within tomcat's JVM. For OSU, we had used either transport-client, or node-client, and both of which required that the server also be running a seperate elastic search instance. By bundling this into DSpace, it should make this a bit more turn-key to get started using Elastic Search. By default, Elastic Search is ON with this commit.
This commit is contained in:
@@ -7,13 +7,13 @@
|
||||
*/
|
||||
package org.dspace.content;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.dspace.core.Constants;
|
||||
import org.dspace.core.Context;
|
||||
import org.dspace.eperson.EPerson;
|
||||
import org.dspace.eperson.Group;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* Abstract base class for DSpace objects
|
||||
*/
|
||||
@@ -65,6 +65,15 @@ public abstract class DSpaceObject
|
||||
*/
|
||||
public abstract int getType();
|
||||
|
||||
/**
|
||||
* Provide the text name of the type of this DSpaceObject. It is most likely all uppercase.
|
||||
* @return Object type as text
|
||||
*/
|
||||
public String getTypeText()
|
||||
{
|
||||
return Constants.typeText[this.getType()];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the internal ID (database primary key) of this object
|
||||
*
|
||||
|
Reference in New Issue
Block a user