|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jeceira.observation.WorkspaceEvent
Event fired within a specific workspace. This event is wrapped into a
SessionEvent
and delivered to all event
listeners registered with the sessions associated with the workspace.
Constructor Summary | |
WorkspaceEvent(int type,
java.lang.String sessionId,
java.lang.String userId,
Path itemPath,
java.lang.String parentUuid,
NodeTypeName parentPrimaryTypeName)
Creates a workspace event of the specified type triggered by the session with the specified session ID. |
Method Summary | |
void |
addParentMixinTypeName(NodeTypeName parentMixinTypeName)
Adds the name of a mixin type of the parent node associated with this event. |
static WorkspaceEvent |
createEvent(int type,
SessionItem item)
Creates an event with the specified type associated with the specified item. |
Path |
getItemPath()
Returns the path of the affected item. |
NodeTypeName[] |
getParentMixinTypeNames()
Returns the names of the mixin types of the parent node associated with this event. |
NodeTypeName |
getParentPrimaryTypeName()
Returns the name of the primary type of the parent node associated with this event. |
java.lang.String |
getParentUuid()
Returns the UUID of the parent node of the affected item. |
java.lang.String |
getSessionId()
Returns the ID of the session which has triggered the event. |
int |
getType()
Returns the type of this event. |
java.lang.String |
getUserId()
Returns the ID of the user owning the session which has triggered the event. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WorkspaceEvent(int type, java.lang.String sessionId, java.lang.String userId, Path itemPath, java.lang.String parentUuid, NodeTypeName parentPrimaryTypeName)
type
- event typesessionId
- id of the session where event occureduserId
- id of the user owning the specified sessionitemPath
- path of the affected itemparentUuid
- UUID of the parent node of the affected itemparentPrimaryTypeName
- name of the primary node type of the parent node
java.lang.NullPointerException
- if either of the arguments, except user ID, is
null
Method Detail |
public static WorkspaceEvent createEvent(int type, SessionItem item) throws RepositoryException
java.lang.NullPointerException
- if the specified item is null
RepositoryException
public void addParentMixinTypeName(NodeTypeName parentMixinTypeName)
java.lang.NullPointerException
- if the specified node type name is null
public Path getItemPath()
null
.
public NodeTypeName[] getParentMixinTypeNames()
public NodeTypeName getParentPrimaryTypeName()
null
.
public java.lang.String getParentUuid()
null
.
public java.lang.String getSessionId()
null
.
public int getType()
public java.lang.String getUserId()
null
.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |