org.silverpeas.subscription
Class SubscriptionContext

java.lang.Object
  extended by org.silverpeas.subscription.SubscriptionContext

public class SubscriptionContext
extends Object

User: Yohann Chastagnier Date: 04/03/13


Constructor Summary
SubscriptionContext(UserDetail user, UserPreferences userPreferences)
          Default constructor
 
Method Summary
 String getDestinationUrl()
          Gets the destination URL.
 Collection<SubscriptionResourcePath> getPath()
          Gets the path aimed by the subscription.
 SubscriptionResource getResource()
          Gets the resource aimed by the subscription.
 UserDetail getUser()
          Gets the current user.
 void initialize(SubscriptionResource resource)
          Initializing all context data excepted ones of the user.
 void initialize(SubscriptionResource resource, Collection<SubscriptionResourcePath> resourcePath)
          Initializing all context data excepted ones of the user.
 void initializeFromNode(SubscriptionResource resource, Collection<NodeDetail> nodePath)
          Initializing all context data excepted ones of the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionContext

public SubscriptionContext(UserDetail user,
                           UserPreferences userPreferences)
Default constructor

Method Detail

initialize

public void initialize(SubscriptionResource resource)
Initializing all context data excepted ones of the user.

Parameters:
resource -

initialize

public void initialize(SubscriptionResource resource,
                       Collection<SubscriptionResourcePath> resourcePath)
Initializing all context data excepted ones of the user.

Parameters:
resource -
resourcePath -

initializeFromNode

public void initializeFromNode(SubscriptionResource resource,
                               Collection<NodeDetail> nodePath)
Initializing all context data excepted ones of the user.

Parameters:
resource -
nodePath -

getUser

public UserDetail getUser()
Gets the current user.

Returns:

getResource

public SubscriptionResource getResource()
Gets the resource aimed by the subscription.

Returns:

getPath

public Collection<SubscriptionResourcePath> getPath()
Gets the path aimed by the subscription. (Path for browse bar)

Returns:

getDestinationUrl

public String getDestinationUrl()
Gets the destination URL.

Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.