SAP NetWeaver '04

com.sapportals.wcm.repository.service.discussion
Class DiscussionEvent

[contained in: com.sap.km.cm.repository.service.par - km.shared.repository.service.app.discussion_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.repository.service.discussion.DiscussionEvent
All Implemented Interfaces:
IDiscussionEvent, IEvent, IResourceEvent

public class DiscussionEvent
extends java.lang.Object
implements IDiscussionEvent

Copyright 2004 SAP AG


Field Summary
static DiscussionEvent CHANGE_DISCUSSION_ITEM_TEMPLATE
           
static DiscussionEvent CHANGE_DISCUSSION_TEMPLATE
           
static DiscussionEvent DELETE_DISCUSSION_ITEM_TEMPLATE
           
static DiscussionEvent DELETE_DISCUSSION_TEMPLATE
           
static DiscussionEvent NEW_DISCUSSION_ITEM_TEMPLATE
           
static DiscussionEvent NEW_DISCUSSION_TEMPLATE
           
static DiscussionEvent PRE_CHANGE_DISCUSSION_ITEM_TEMPLATE
           
static DiscussionEvent PRE_CHANGE_DISCUSSION_TEMPLATE
          The event templates
static DiscussionEvent PRE_DELETE_DISCUSSION_ITEM_TEMPLATE
           
static DiscussionEvent PRE_DELETE_DISCUSSION_TEMPLATE
           
 
Fields inherited from interface com.sapportals.wcm.repository.service.discussion.IDiscussionEvent
CHANGE_DISCUSSION, CHANGE_DISCUSSION_ITEM, DELETE_DISCUSSION, DELETE_DISCUSSION_ITEM, NEW_DISCUSSION, NEW_DISCUSSION_ITEM, PRE_CHANGE_DISCUSSION, PRE_CHANGE_DISCUSSION_ITEM, PRE_DELETE_DISCUSSION, PRE_DELETE_DISCUSSION_ITEM
 
Constructor Summary
DiscussionEvent(int aType, IResource aResource)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getDescription(java.util.Locale locale)
           
 java.lang.Object getParameter()
          Returns the event's parameter
 IResource getResource()
          Get a reference to the IResource , that caused the event.
 int getType()
          Returns the event's type
 boolean isLike(IEvent template)
          Compares this event with another event for equality or some kind of "similarity".
 boolean isSemanticEvent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRE_CHANGE_DISCUSSION_TEMPLATE

public static final DiscussionEvent PRE_CHANGE_DISCUSSION_TEMPLATE
The event templates

PRE_CHANGE_DISCUSSION_ITEM_TEMPLATE

public static final DiscussionEvent PRE_CHANGE_DISCUSSION_ITEM_TEMPLATE

PRE_DELETE_DISCUSSION_TEMPLATE

public static final DiscussionEvent PRE_DELETE_DISCUSSION_TEMPLATE

PRE_DELETE_DISCUSSION_ITEM_TEMPLATE

public static final DiscussionEvent PRE_DELETE_DISCUSSION_ITEM_TEMPLATE

NEW_DISCUSSION_TEMPLATE

public static final DiscussionEvent NEW_DISCUSSION_TEMPLATE

NEW_DISCUSSION_ITEM_TEMPLATE

public static final DiscussionEvent NEW_DISCUSSION_ITEM_TEMPLATE

CHANGE_DISCUSSION_TEMPLATE

public static final DiscussionEvent CHANGE_DISCUSSION_TEMPLATE

CHANGE_DISCUSSION_ITEM_TEMPLATE

public static final DiscussionEvent CHANGE_DISCUSSION_ITEM_TEMPLATE

DELETE_DISCUSSION_TEMPLATE

public static final DiscussionEvent DELETE_DISCUSSION_TEMPLATE

DELETE_DISCUSSION_ITEM_TEMPLATE

public static final DiscussionEvent DELETE_DISCUSSION_ITEM_TEMPLATE
Constructor Detail

DiscussionEvent

public DiscussionEvent(int aType,
                       IResource aResource)
Method Detail

isLike

public boolean isLike(IEvent template)
Description copied from interface: IEvent
Compares this event with another event for equality or some kind of "similarity". Normally an event equals another if it is of the same instance and type. There might be implementations that want to match one event type with many others.
Specified by:
isLike in interface IEvent
Following copied from interface: com.sapportals.wcm.util.events.IEvent
Parameters:
template - The other event to compare with.
Returns:
True, if the specified event template is equal to this event, according to the implemented matching rules.

getResource

public IResource getResource()
Description copied from interface: IResourceEvent
Get a reference to the IResource , that caused the event.
Specified by:
getResource in interface IResourceEvent
Following copied from interface: com.sapportals.wcm.repository.manager.IResourceEvent
Returns:
IResource Resource, that caused the event.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IEvent

getDescription

public java.lang.String getDescription(java.util.Locale locale)
Specified by:
getDescription in interface IEvent

getType

public int getType()
Description copied from interface: IEvent
Returns the event's type
Specified by:
getType in interface IEvent
Following copied from interface: com.sapportals.wcm.util.events.IEvent
Returns:
the event's type

getParameter

public java.lang.Object getParameter()
Description copied from interface: IEvent
Returns the event's parameter
Specified by:
getParameter in interface IEvent
Following copied from interface: com.sapportals.wcm.util.events.IEvent
Returns:
the event's parameter

isSemanticEvent

public boolean isSemanticEvent()

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.