info.magnolia.cms.exchange
Interface Syndicator


public interface Syndicator

Basic activation contract. Provides methods to activate or de-activate content (either current or versioned).


Method Summary
 void activate(String parent, Content content)
          This will activate the specified node to all configured subscribers.
 void activate(String parent, Content content, List<String> orderBefore)
          This will activate the specified node to all configured subscribers.
 void activate(Subscriber subscriber, String parent, Content content)
          This will activate the specified node to the specified subscriber.
 void activate(Subscriber subscriber, String parent, Content content, List<String> orderBefore)
          This will activate the specified node to the specified subscriber.
 void deactivate(Content node)
           
 void deactivate(Subscriber subscriber, Content node)
           
 void init(User user, String repositoryName, String workspaceName, Rule rule)
          Deprecated. since 4.5 use ioc instead
 

Method Detail

init

@Deprecated
void init(User user,
                     String repositoryName,
                     String workspaceName,
                     Rule rule)
Deprecated. since 4.5 use ioc instead

Sets up the syndicator.

Parameters:
user - the user to use for the connection to the subscriber
repositoryName - the repository to transmit
workspaceName - the workspace to transmit
rule - the rules defining which nodes to transmit (node types)

activate

void activate(String parent,
              Content content)
              throws ExchangeException,
                     javax.jcr.RepositoryException
This will activate the specified node to all configured subscribers.

Parameters:
parent - parent under which this page will be activated
content - to be activated
Throws:
ExchangeException
javax.jcr.RepositoryException

activate

void activate(String parent,
              Content content,
              List<String> orderBefore)
              throws ExchangeException,
                     javax.jcr.RepositoryException
This will activate the specified node to all configured subscribers.

Parameters:
parent - parent under which this page will be activated
content - to be activated
orderBefore - List of UUID to be used by the implementation to order this node after activation
Throws:
ExchangeException
javax.jcr.RepositoryException

activate

void activate(Subscriber subscriber,
              String parent,
              Content content)
              throws ExchangeException,
                     javax.jcr.RepositoryException
This will activate the specified node to the specified subscriber.

Parameters:
parent - parent under which this page will be activated
content - to be activated
Throws:
ExchangeException
javax.jcr.RepositoryException

activate

void activate(Subscriber subscriber,
              String parent,
              Content content,
              List<String> orderBefore)
              throws ExchangeException,
                     javax.jcr.RepositoryException
This will activate the specified node to the specified subscriber.

Parameters:
parent - parent under which this page will be activated
content - to be activated
orderBefore - List of UUID to be used by the subscriber to order this node after activation
Throws:
ExchangeException
javax.jcr.RepositoryException

deactivate

void deactivate(Content node)
                throws ExchangeException,
                       javax.jcr.RepositoryException
Parameters:
node - to de-activate
Throws:
ExchangeException
javax.jcr.RepositoryException

deactivate

void deactivate(Subscriber subscriber,
                Content node)
                throws ExchangeException,
                       javax.jcr.RepositoryException
Parameters:
node - to de-activate
Throws:
ExchangeException
javax.jcr.RepositoryException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.