|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.statistics.AbstractUsageEvent
public abstract class AbstractUsageEvent
Base class to be extended by usage event handlers.
| Field Summary | |
|---|---|
protected EPerson |
eperson
The EPerson making the request, or null if not logged on |
protected int |
eventType
What happened? Viewed, logged on, etc. |
protected int |
objectID
Identity of specific object which experienced the event |
protected int |
objectType
Type of object which experienced the event. |
protected String |
sessionID
Which session sent the query. |
protected String |
sourceAddress
Address from which the query was received |
static int |
VIEW
Event is "object has been viewed or downloaded" |
| Constructor Summary | |
|---|---|
AbstractUsageEvent()
Because the PluginManager can only call a plugin's niladic constructor, the constructor returns an "empty" event. |
|
| Method Summary | |
|---|---|
abstract void |
fire()
Called when the event is fully configured, to process the data. |
EPerson |
getEperson()
|
int |
getEventType()
|
int |
getID()
|
int |
getObjectType()
|
String |
getSessionID()
|
String |
getSource()
|
void |
setEperson(EPerson user)
|
void |
setEventType(int type)
|
void |
setID(int id)
|
void |
setObjectType(int type)
|
void |
setSessionID(String id)
|
void |
setSource(String address)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VIEW
protected String sessionID
protected String sourceAddress
protected EPerson eperson
protected int eventType
protected int objectType
Constants for values.
protected int objectID
| Constructor Detail |
|---|
public AbstractUsageEvent()
| Method Detail |
|---|
public void setSessionID(String id)
id - opaque session identifier returned by the HTTP requestpublic String getSessionID()
public void setSource(String address)
address - the address from which the HTTP request camepublic String getSource()
public void setEperson(EPerson user)
user - an object representing the logged-on user, if any. May be
null.public EPerson getEperson()
public void setEventType(int type)
type - the type of event (view, logon, etc.)public int getEventType()
public void setObjectType(int type)
type - the type of object experiencing the event (bitstream, etc.)public int getObjectType()
public void setID(int id)
id - the identifier of the specific object experiencing the eventpublic int getID()
public abstract void fire()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||