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(String name,
boolean is_public,
String json)
|
Subscription |
createFromURI(String uri)
|
Subscription |
createRSS(String name,
URL url,
int check_interval_mins,
boolean anonymous,
Map user_data)
|
Subscription |
createRSS(String name,
URL url,
int check_interval_mins,
Map user_data)
|
Subscription |
createSingletonRSS(String name,
URL url,
int check_interval_mins)
|
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()
|
String |
getRateLimits()
|
String |
getRSSLink()
|
SubscriptionScheduler |
getScheduler()
|
Subscription |
getSubscriptionByID(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,
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(String limits)
|
void |
setRSSPublishEnabled(boolean enabled)
|
void |
setSearchEnabled(boolean enabled)
|
void |
setSubsDownloadEnabled(boolean enabled)
|
create
Subscription create(String name,
boolean is_public,
String json)
throws SubscriptionException
- Throws:
SubscriptionException
createRSS
Subscription createRSS(String name,
URL url,
int check_interval_mins,
Map user_data)
throws SubscriptionException
- Throws:
SubscriptionException
createRSS
Subscription createRSS(String name,
URL url,
int check_interval_mins,
boolean anonymous,
Map user_data)
throws SubscriptionException
- Throws:
SubscriptionException
createSingletonRSS
Subscription createSingletonRSS(String name,
URL url,
int check_interval_mins)
throws SubscriptionException
- Throws:
SubscriptionException
createFromURI
Subscription createFromURI(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(String id)
lookupAssociations
SubscriptionAssociationLookup lookupAssociations(byte[] hash,
SubscriptionLookupListener listener)
throws SubscriptionException
- Full lookup
- Parameters:
hash
- listener
-
- Returns:
-
- Throws:
SubscriptionException
lookupAssociations
SubscriptionAssociationLookup lookupAssociations(byte[] hash,
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
String getRSSLink()
setRateLimits
void setRateLimits(String limits)
getRateLimits
String getRateLimits()
addListener
void addListener(SubscriptionManagerListener listener)
removeListener
void removeListener(SubscriptionManagerListener listener)