com.silverpeas.pdcSubscription
Class PdcResourceClassificationUserNotification

java.lang.Object
  extended by com.silverpeas.notification.builder.AbstractUserNotificationBuilder
      extended by com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder<T>
          extended by com.silverpeas.pdcSubscription.AbstractPdcSubscriptionUserNotification<SilverContentInterface>
              extended by com.silverpeas.pdcSubscription.PdcResourceClassificationUserNotification
All Implemented Interfaces:
UserNotificationBuilder

public class PdcResourceClassificationUserNotification
extends AbstractPdcSubscriptionUserNotification<SilverContentInterface>


Constructor Summary
PdcResourceClassificationUserNotification(PDCSubscription pdcSubscription, SilverContentInterface silverContent)
           
 
Method Summary
protected  NotifAction getAction()
          Gets the type of action on a resource
protected  String getComponentInstanceId()
          Gets the component instance id
protected  String getResourceURL(SilverContentInterface silverContent)
          Gets the URL of the resource
protected  String getSender()
          Gets the sender (the user id usually)
protected  boolean isSendImmediatly()
          Forces the sending immediatly if true
protected  void performBuild(SilverContentInterface silverContent)
          Builds the notification data container
protected  void performNotificationResource(SilverContentInterface silverContent, NotificationResourceData notificationResourceData)
          Builds the notification resource data container.
 
Methods inherited from class com.silverpeas.pdcSubscription.AbstractPdcSubscriptionUserNotification
getMultilangPropertyFile, getPdcSubscription, getUserIdsToNotify, getUserLanguage
 
Methods inherited from class com.silverpeas.notification.builder.AbstractResourceUserNotificationBuilder
getResource, initialize, initializeNotificationResourceData, performBuild, performNotificationResource, setResource
 
Methods inherited from class com.silverpeas.notification.builder.AbstractUserNotificationBuilder
build, createNotification, getBundle, getBundle, getContent, getExternalAddressesToNotify, getGroupIdsToNotify, getMessageType, getNotificationMetaData, getTitle, getUserIdsToExcludeFromNotifying, performUsersToBeNotified, stop, stopWhenNoUserToNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdcResourceClassificationUserNotification

public PdcResourceClassificationUserNotification(PDCSubscription pdcSubscription,
                                                 SilverContentInterface silverContent)
Method Detail

getAction

protected NotifAction getAction()
Description copied from class: AbstractUserNotificationBuilder
Gets the type of action on a resource

Specified by:
getAction in class AbstractUserNotificationBuilder
Returns:

isSendImmediatly

protected boolean isSendImmediatly()
Description copied from class: AbstractUserNotificationBuilder
Forces the sending immediatly if true

Overrides:
isSendImmediatly in class AbstractResourceUserNotificationBuilder<SilverContentInterface>
Returns:

getComponentInstanceId

protected String getComponentInstanceId()
Description copied from class: AbstractUserNotificationBuilder
Gets the component instance id

Specified by:
getComponentInstanceId in class AbstractUserNotificationBuilder
Returns:

getSender

protected String getSender()
Description copied from class: AbstractUserNotificationBuilder
Gets the sender (the user id usually)

Specified by:
getSender in class AbstractUserNotificationBuilder
Returns:

performBuild

protected void performBuild(SilverContentInterface silverContent)
Description copied from class: AbstractResourceUserNotificationBuilder
Builds the notification data container

Specified by:
performBuild in class AbstractResourceUserNotificationBuilder<SilverContentInterface>

performNotificationResource

protected void performNotificationResource(SilverContentInterface silverContent,
                                           NotificationResourceData notificationResourceData)
Description copied from class: AbstractResourceUserNotificationBuilder
Builds the notification resource data container. Don't forget to fill resourceId, resourceType, resourceName, resourceDescription (optional), resourceLocation (optional). If ResourceLocation is empty , it will be filled by the NotificationManager with the given componentInstanceId of NotificationMetaData.

Specified by:
performNotificationResource in class AbstractResourceUserNotificationBuilder<SilverContentInterface>

getResourceURL

protected String getResourceURL(SilverContentInterface silverContent)
Description copied from class: AbstractResourceUserNotificationBuilder
Gets the URL of the resource

Overrides:
getResourceURL in class AbstractResourceUserNotificationBuilder<SilverContentInterface>
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.