|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.services.model.Event
public class Event
This holds all the settings related to an event in the system.
| Nested Class Summary | |
|---|---|
static class |
Event.Scope
The event scopes to send events to. |
| Constructor Summary | |
|---|---|
Event(String name)
Create a new event with the given name. |
|
Event(String name,
String resourceReference,
boolean modify)
Create a new event with the given name for the given resource (item, collection, etc.). |
|
Event(String name,
String resourceReference,
boolean modify,
boolean localOnly)
Create a new event with the given name for the given resource (item, collection, etc.). |
|
Event(String name,
String resourceReference,
String userId,
boolean modify)
Create a new event with the given name for the given user on the given resource (item, collection, etc.). |
|
Event(String name,
String resourceReference,
String userId,
Map<String,String> properties,
Event.Scope[] scopes,
boolean modify)
Create a new event with the given name for the given user on the given resource (item, collection, etc.). |
|
| Method Summary | |
|---|---|
String |
getId()
|
String |
getName()
|
Map<String,String> |
getProperties()
|
String |
getResourceReference()
Reference the resource affected by this event. |
Event.Scope[] |
getScopes()
|
String |
getUserId()
|
boolean |
isModify()
Did this event modify something in the system? |
void |
setId(String id)
|
void |
setModify(boolean modify)
|
void |
setName(String name)
|
void |
setProperties(Map<String,String> properties)
|
void |
setResourceReference(String resourceReference)
|
void |
setScopes(Event.Scope[] scopes)
|
void |
setUserId(String userId)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Event(String name)
name - an event name (e.g. collection.read, item.modify)
public Event(String name,
String resourceReference,
boolean modify)
name - an event name (e.g. collection.read, item.modify)resourceReference - the reference (identifier) for the resource affected by this eventmodify - if true then this is a modify event, if false it is just a read event
public Event(String name,
String resourceReference,
boolean modify,
boolean localOnly)
name - an event name (e.g. collection.read, item.modify)resourceReference - the reference (identifier) for the resource affected by this eventmodify - if true then this is a modify event, if false it is just a read eventlocalOnly - if true then this is a local event only, otherwise it defaults to local/cluster
public Event(String name,
String resourceReference,
String userId,
boolean modify)
name - an event name (e.g. collection.read, item.modify)resourceReference - the reference (identifier) for the resource affected by this eventuserId - the internal user id for the user who caused this eventmodify - if true then this is a modify event, if false it is just a read event
public Event(String name,
String resourceReference,
String userId,
Map<String,String> properties,
Event.Scope[] scopes,
boolean modify)
name - an event name (e.g. collection.read, item.modify)resourceReference - the reference (identifier) for the resource affected by this eventuserId - the internal user id for the user who caused this eventproperties - additional properties to send along with this eventscopes - the scopes to send this event tomodify - if true then this is a modify event, if false it is just a read event| Method Detail |
|---|
public String getId()
public void setId(String id)
public String getName()
public void setName(String name)
public String getUserId()
public void setUserId(String userId)
public String getResourceReference()
public void setResourceReference(String resourceReference)
public boolean isModify()
public void setModify(boolean modify)
public Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
public Event.Scope[] getScopes()
public void setScopes(Event.Scope[] scopes)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||