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 java.lang.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
 java.lang.String getFromURI()
           
 java.lang.String getName()
           
 java.lang.String getRepository()
           
 java.lang.String getToURI()
           
 boolean isEnabled()
           
 void setFromURI(java.lang.String fromURI)
           
 void setName(java.lang.String name)
           
 void setRepository(java.lang.String repository)
           
 void setToURI(java.lang.String toURI)
           
 int vote(java.lang.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 java.lang.String getName()
Specified by:
getName in interface Subscription

setName

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

getFromURI

public java.lang.String getFromURI()
Specified by:
getFromURI in interface Subscription

setFromURI

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

getToURI

public java.lang.String getToURI()
Specified by:
getToURI in interface Subscription

setToURI

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

getRepository

public java.lang.String getRepository()
Specified by:
getRepository in interface Subscription

setRepository

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

vote

public int vote(java.lang.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-2011 Magnolia International Ltd.. All Rights Reserved.