info.magnolia.module.exchangesimple
Class DefaultSubscription

java.lang.Object
  extended by info.magnolia.module.exchangesimple.DefaultSubscription
All Implemented Interfaces:
Subscription, Voter

public class DefaultSubscription
extends Object
implements Subscription

Bean holder for the default subscription information.

Author:
Sameer Charles $Id: DefaultSubscription.java 41137 2011-01-06 18:19:25Z gjoseph $

Constructor Summary
DefaultSubscription()
           
 
Method Summary
 String getFromURI()
           
 String getName()
           
 String getRepository()
           
 String getToURI()
           
 boolean isEnabled()
           
 void setFromURI(String fromURI)
           
 void setName(String name)
           
 void setRepository(String repository)
           
 void setToURI(String toURI)
           
 int vote(Object value)
          Checks if we are subscribed to the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSubscription

public DefaultSubscription()
Method Detail

getName

public String getName()
Specified by:
getName in interface Subscription

setName

public void setName(String name)
Specified by:
setName in interface Subscription

getFromURI

public String getFromURI()
Specified by:
getFromURI in interface Subscription

setFromURI

public void setFromURI(String fromURI)
Specified by:
setFromURI in interface Subscription

getToURI

public String getToURI()
Specified by:
getToURI in interface Subscription

setToURI

public void setToURI(String toURI)
Specified by:
setToURI in interface Subscription

getRepository

public String getRepository()
Specified by:
getRepository in interface Subscription

setRepository

public void setRepository(String repository)
Specified by:
setRepository in interface Subscription

vote

public int vote(Object value)
Checks if we are subscribed to the given path.

Specified by:
vote in interface Voter
Parameters:
value - path to check
Returns:
the length of the fromURI

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Voter


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