com.aelitis.azureus.core.subs
Interface SubscriptionManager

All Superinterfaces:
UtilitiesImpl.PluginSubscriptionManager
All Known Implementing Classes:
SubscriptionManagerImpl

public interface SubscriptionManager
extends UtilitiesImpl.PluginSubscriptionManager


Method Summary
 void addListener(SubscriptionManagerListener listener)
           
 Subscription create(java.lang.String name, boolean is_public, java.lang.String json)
           
 Subscription createFromURI(java.lang.String uri)
           
 Subscription createRSS(java.lang.String name, java.net.URL url, int check_interval_mins, boolean anonymous, java.util.Map user_data)
           
 Subscription createRSS(java.lang.String name, java.net.URL url, int check_interval_mins, java.util.Map user_data)
           
 Subscription createSingletonRSS(java.lang.String name, java.net.URL url, int check_interval_mins, boolean is_anon)
           
 boolean getActivateSubscriptionOnChange()
           
 int getAutoDownloadMarkReadAfterDays()
           
 boolean getAutoStartDownloads()
           
 int getAutoStartMaxMB()
           
 int getAutoStartMinMB()
           
 int getKnownSubscriptionCount()
           
 Subscription[] getKnownSubscriptions(byte[] hash)
          Cached view of hash's subs
 Subscription[] getLinkedSubscriptions(byte[] hash)
           
 int getMaxNonDeletedResults()
           
 java.lang.String getRateLimits()
           
 java.lang.String getRSSLink()
           
 SubscriptionScheduler getScheduler()
           
 Subscription getSubscriptionByID(java.lang.String id)
           
 int getSubscriptionCount(boolean subscribed_only)
           
 Subscription[] getSubscriptions()
           
 Subscription[] getSubscriptions(boolean subscribed_only)
           
 boolean hideSearchTemplates()
           
 boolean isRSSPublishEnabled()
           
 boolean isSearchEnabled()
           
 boolean isSubsDownloadEnabled()
           
 SubscriptionAssociationLookup lookupAssociations(byte[] hash, java.lang.String[] networks, SubscriptionLookupListener listener)
           
 SubscriptionAssociationLookup lookupAssociations(byte[] hash, SubscriptionLookupListener listener)
          Full lookup
 void removeListener(SubscriptionManagerListener listener)
           
 void setActivateSubscriptionOnChange(boolean b)
           
 void setAutoDownloadMarkReadAfterDays(int days)
           
 void setAutoStartDownloads(boolean auto_start)
           
 void setAutoStartMaxMB(int mb)
           
 void setAutoStartMinMB(int mb)
           
 void setMaxNonDeletedResults(int max)
           
 void setRateLimits(java.lang.String limits)
           
 void setRSSPublishEnabled(boolean enabled)
           
 void setSearchEnabled(boolean enabled)
           
 void setSubsDownloadEnabled(boolean enabled)
           
 
Methods inherited from interface org.gudy.azureus2.pluginsimpl.local.utils.UtilitiesImpl.PluginSubscriptionManager
requestSubscription, requestSubscription
 

Method Detail

create

Subscription create(java.lang.String name,
                    boolean is_public,
                    java.lang.String json)
                    throws SubscriptionException
Throws:
SubscriptionException

createRSS

Subscription createRSS(java.lang.String name,
                       java.net.URL url,
                       int check_interval_mins,
                       java.util.Map user_data)
                       throws SubscriptionException
Throws:
SubscriptionException

createRSS

Subscription createRSS(java.lang.String name,
                       java.net.URL url,
                       int check_interval_mins,
                       boolean anonymous,
                       java.util.Map user_data)
                       throws SubscriptionException
Throws:
SubscriptionException

createSingletonRSS

Subscription createSingletonRSS(java.lang.String name,
                                java.net.URL url,
                                int check_interval_mins,
                                boolean is_anon)
                                throws SubscriptionException
Throws:
SubscriptionException

createFromURI

Subscription createFromURI(java.lang.String uri)
                           throws SubscriptionException
Throws:
SubscriptionException

getKnownSubscriptionCount

int getKnownSubscriptionCount()

getSubscriptionCount

int getSubscriptionCount(boolean subscribed_only)

getSubscriptions

Subscription[] getSubscriptions()

getSubscriptions

Subscription[] getSubscriptions(boolean subscribed_only)
Specified by:
getSubscriptions in interface UtilitiesImpl.PluginSubscriptionManager

getSubscriptionByID

Subscription getSubscriptionByID(java.lang.String id)

lookupAssociations

SubscriptionAssociationLookup lookupAssociations(byte[] hash,
                                                 SubscriptionLookupListener listener)
                                                 throws SubscriptionException
Full lookup

Parameters:
hash -
listener -
Returns:
Throws:
SubscriptionException

lookupAssociations

SubscriptionAssociationLookup lookupAssociations(byte[] hash,
                                                 java.lang.String[] networks,
                                                 SubscriptionLookupListener listener)
                                                 throws SubscriptionException
Throws:
SubscriptionException

getKnownSubscriptions

Subscription[] getKnownSubscriptions(byte[] hash)
Cached view of hash's subs

Parameters:
hash -
Returns:

getLinkedSubscriptions

Subscription[] getLinkedSubscriptions(byte[] hash)

getScheduler

SubscriptionScheduler getScheduler()

getMaxNonDeletedResults

int getMaxNonDeletedResults()

setMaxNonDeletedResults

void setMaxNonDeletedResults(int max)

getAutoStartDownloads

boolean getAutoStartDownloads()

setAutoStartDownloads

void setAutoStartDownloads(boolean auto_start)

getAutoStartMinMB

int getAutoStartMinMB()

setAutoStartMinMB

void setAutoStartMinMB(int mb)

getAutoStartMaxMB

int getAutoStartMaxMB()

setAutoStartMaxMB

void setAutoStartMaxMB(int mb)

getAutoDownloadMarkReadAfterDays

int getAutoDownloadMarkReadAfterDays()

setAutoDownloadMarkReadAfterDays

void setAutoDownloadMarkReadAfterDays(int days)

isRSSPublishEnabled

boolean isRSSPublishEnabled()

setRSSPublishEnabled

void setRSSPublishEnabled(boolean enabled)

isSearchEnabled

boolean isSearchEnabled()

setSearchEnabled

void setSearchEnabled(boolean enabled)

isSubsDownloadEnabled

boolean isSubsDownloadEnabled()

setSubsDownloadEnabled

void setSubsDownloadEnabled(boolean enabled)

hideSearchTemplates

boolean hideSearchTemplates()

setActivateSubscriptionOnChange

void setActivateSubscriptionOnChange(boolean b)

getActivateSubscriptionOnChange

boolean getActivateSubscriptionOnChange()

getRSSLink

java.lang.String getRSSLink()

setRateLimits

void setRateLimits(java.lang.String limits)

getRateLimits

java.lang.String getRateLimits()

addListener

void addListener(SubscriptionManagerListener listener)

removeListener

void removeListener(SubscriptionManagerListener listener)