com.sapportals.wcm.repository.service.discussion.wcm

Class DiscussionEvent

java.lang.Object
  extended bycom.sapportals.wcm.repository.service.discussion.wcm.DiscussionEvent
All Implemented Interfaces:
IDiscussionEvent, IEvent, IResourceEvent

public class DiscussionEvent
extends 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
 String getDescription()
           
 String getDescription(Locale locale)
           
 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
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
Returns:
IResource Resource, that caused the event.

getDescription

public String getDescription()
Specified by:
getDescription in interface IEvent

getDescription

public String getDescription(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
Returns:
the event's type

getParameter

public Object getParameter()
Description copied from interface: IEvent
Returns the event's parameter

Specified by:
getParameter in interface IEvent
Returns:
the event's parameter

isSemanticEvent

public boolean isSemanticEvent()


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. 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.