com.ptc.wvs.server.publish
Class PublishServiceEvent

java.lang.Object
  extended bywt.events.KeyedEvent
      extended bycom.ptc.wvs.server.publish.PublishServiceEvent
All Implemented Interfaces:
Serializable

public class PublishServiceEvent
extends KeyedEvent
implements Serializable

This event can be used to indicate publishing in complete

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static String PUBLISH_COMPLETE
          Constant containing the event type for the publish_complete event

Supported API: false
static String PUBLISH_NOT_SUCCESSFUL
          Constant containing the event type for the publish_complete event

Supported API: false
static String PUBLISH_SUCCESSFUL
          Constant containing the event type for the publish_complete event

Supported API: false
private static String RESOURCE
           
private  boolean success
           
 
Fields inherited from class wt.events.KeyedEvent
 
Constructor Summary
PublishServiceEvent(String eventType, Persistable persistable, boolean success)
          Constructs a PublishServiceEvent

Supported API: false
PublishServiceEvent(String eventType, WTKeyedMap persistables)
          Constructs a multi object PublishServiceEvent

Supported API: false
 
Method Summary
static String generateEventKey(String eventType)
          Generates a unique event key for the event type

Supported API: false
 boolean getSuccess()
           
 boolean getSuccess(Persistable target)
           
 WTKeyedMap getTargetMap()
           
 KeyedEvent toMultiObjectEvent()
          

Supported API: false
 KeyedEvent[] toSingleObjectEvents()
          

Supported API: false
 
Methods inherited from class wt.events.KeyedEvent
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

PUBLISH_COMPLETE

public static final String PUBLISH_COMPLETE
Constant containing the event type for the publish_complete event

Supported API: false

See Also:
Constant Field Values

PUBLISH_SUCCESSFUL

public static final String PUBLISH_SUCCESSFUL
Constant containing the event type for the publish_complete event

Supported API: false

See Also:
Constant Field Values

PUBLISH_NOT_SUCCESSFUL

public static final String PUBLISH_NOT_SUCCESSFUL
Constant containing the event type for the publish_complete event

Supported API: false

See Also:
Constant Field Values

success

private boolean success
Constructor Detail

PublishServiceEvent

public PublishServiceEvent(String eventType,
                           Persistable persistable,
                           boolean success)
Constructs a PublishServiceEvent

Supported API: false

Parameters:
eventType -
persistable -
success -

PublishServiceEvent

public PublishServiceEvent(String eventType,
                           WTKeyedMap persistables)
Constructs a multi object PublishServiceEvent

Supported API: false

Parameters:
eventType -
Method Detail

generateEventKey

public static String generateEventKey(String eventType)
Generates a unique event key for the event type

Supported API: false

Parameters:
eventType -
Returns:
String

getSuccess

public boolean getSuccess()

getSuccess

public boolean getSuccess(Persistable target)

getTargetMap

public WTKeyedMap getTargetMap()

toSingleObjectEvents

public KeyedEvent[] toSingleObjectEvents()
                                  throws WTException


Supported API: false

Overrides:
toSingleObjectEvents in class KeyedEvent
Returns:
KeyedEvent[]
Throws:
WTException

toMultiObjectEvent

public KeyedEvent toMultiObjectEvent()


Supported API: false

Overrides:
toMultiObjectEvent in class KeyedEvent
Returns:
KeyedEvent