com.ptc.netmarkets.subscription
Class StandardNmSubscriptionService

java.lang.Object
  extended bywt.services.StandardManager
      extended bycom.ptc.netmarkets.subscription.StandardNmSubscriptionService
All Implemented Interfaces:
Manager, NetFactor, NmSubscriptionService, Serializable

public class StandardNmSubscriptionService
extends StandardManager
implements NmSubscriptionService, Serializable

Use the newStandardNmSubscriptionService static factory method(s), not the StandardNmSubscriptionService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String ACCESS_RESOURCE
           
private static String ACTION_ITEM_GIF
           
private static String CLASSNAME
           
private static String DELIVERABLE_GIF
           
private static String DISCUSSION_FORUM_GIF
           
private static String DISCUSSION_POSTING_GIF
           
private static String DISCUSSION_TOPIC_GIF
           
private static String EVENT_RESOURCE
           
private static String FOLDER_GIF
           
private static String MANAGER_KEY
           
private static String MILESTONE_GIF
           
private static String NM_SUBSCRIPTION_TEMPLATE
           
private static String NOTIFY_RESOURCE
           
private static String OWNER_KEY
           
private static String PROJECT_ACTIVITY_GIF
           
private static String PROJECT_PLAN_GIF
           
private static String RESOURCE
           
private static String SUBPROJECT_GIF
           
private static String SUMMARY_ACTIVITY_GIF
           
private static String UNKNOWN_GIF
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardNmSubscriptionService()
           
 
Method Summary
private  void buildUsersToSubscribeList(WTPrincipal principal, Vector usersToSubscribe, Vector uniquenessCheck)
           
 NmChangeModel[] create(NmCommandBean cb)
          

Supported API: true
 void delete(NmCommandBean cb)
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
private  WTContainerRef getForumProject(Discussion discussion)
          returns the project that the forum belongs to.
private  Object getForumSubject(Discussion forum)
           
private  NmURL getURLObject(WTObject wtObject)
           
 NmHTMLTable list(NmCommandBean cb)
          Return an NmHTMLTable of subscriptions for the current user

Supported API: true
static StandardNmSubscriptionService newStandardNmSubscriptionService()
          Default factory for the class.
 void unsubscribe(NmOid nm_oid)
          

Supported API: false
 NmObject view(NmCommandBean cb)
          

Supported API: false
 NmObject zoro(NmCommandBean cb)
          

Supported API: false
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, performStartupProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, 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

NOTIFY_RESOURCE

private static final String NOTIFY_RESOURCE
See Also:
Constant Field Values

EVENT_RESOURCE

private static final String EVENT_RESOURCE
See Also:
Constant Field Values

ACCESS_RESOURCE

private static final String ACCESS_RESOURCE
See Also:
Constant Field Values

NM_SUBSCRIPTION_TEMPLATE

private static final String NM_SUBSCRIPTION_TEMPLATE
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE

FOLDER_GIF

private static final String FOLDER_GIF
See Also:
Constant Field Values

ACTION_ITEM_GIF

private static final String ACTION_ITEM_GIF
See Also:
Constant Field Values

PROJECT_PLAN_GIF

private static final String PROJECT_PLAN_GIF
See Also:
Constant Field Values

DISCUSSION_FORUM_GIF

private static final String DISCUSSION_FORUM_GIF
See Also:
Constant Field Values

DISCUSSION_TOPIC_GIF

private static final String DISCUSSION_TOPIC_GIF
See Also:
Constant Field Values

DISCUSSION_POSTING_GIF

private static final String DISCUSSION_POSTING_GIF
See Also:
Constant Field Values

UNKNOWN_GIF

private static final String UNKNOWN_GIF
See Also:
Constant Field Values

PROJECT_ACTIVITY_GIF

private static final String PROJECT_ACTIVITY_GIF
See Also:
Constant Field Values

SUMMARY_ACTIVITY_GIF

private static final String SUMMARY_ACTIVITY_GIF
See Also:
Constant Field Values

DELIVERABLE_GIF

private static final String DELIVERABLE_GIF
See Also:
Constant Field Values

SUBPROJECT_GIF

private static final String SUBPROJECT_GIF
See Also:
Constant Field Values

MILESTONE_GIF

private static final String MILESTONE_GIF
See Also:
Constant Field Values

MANAGER_KEY

private static final String MANAGER_KEY
See Also:
Constant Field Values

OWNER_KEY

private static final String OWNER_KEY
See Also:
Constant Field Values
Constructor Detail

StandardNmSubscriptionService

public StandardNmSubscriptionService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

newStandardNmSubscriptionService

public static StandardNmSubscriptionService newStandardNmSubscriptionService()
                                                                      throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardNmSubscriptionService
Throws:
WTException

list

public NmHTMLTable list(NmCommandBean cb)
                 throws WTException
Return an NmHTMLTable of subscriptions for the current user

Supported API: true

Specified by:
list in interface NmSubscriptionService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

delete

public void delete(NmCommandBean cb)
            throws WTException


Supported API: false

Specified by:
delete in interface NmSubscriptionService
Parameters:
cb -
Throws:
WTException

view

public NmObject view(NmCommandBean cb)
              throws WTException


Supported API: false

Specified by:
view in interface NmSubscriptionService
Parameters:
cb -
Returns:
NmObject
Throws:
WTException

create

public NmChangeModel[] create(NmCommandBean cb)
                       throws WTException


Supported API: true

Specified by:
create in interface NmSubscriptionService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

zoro

public NmObject zoro(NmCommandBean cb)
              throws WTException


Supported API: false

Specified by:
zoro in interface NmSubscriptionService
Parameters:
cb -
Returns:
NmObject
Throws:
WTException

unsubscribe

public void unsubscribe(NmOid nm_oid)
                 throws WTException


Supported API: false

Specified by:
unsubscribe in interface NmSubscriptionService
Parameters:
nm_oid -
Throws:
WTException

getForumProject

private WTContainerRef getForumProject(Discussion discussion)
                                throws WTException
returns the project that the forum belongs to. If forum belongs to a Document/Part, returns the project that the Document or part belong to.

Throws:
WTException

getForumSubject

private Object getForumSubject(Discussion forum)
                        throws WTException
Throws:
WTException

getURLObject

private NmURL getURLObject(WTObject wtObject)
                    throws WTException
Throws:
WTException

buildUsersToSubscribeList

private void buildUsersToSubscribeList(WTPrincipal principal,
                                       Vector usersToSubscribe,
                                       Vector uniquenessCheck)
                                throws WTException
Throws:
WTException