Package com.biglybt.core.subs
Interface SubscriptionManager
- All Superinterfaces:
UtilitiesImpl.PluginSubscriptionManager
- All Known Implementing Classes:
SubscriptionManagerImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(SubscriptionManagerListener listener) createFromURI
(String uri) createSingletonRSS
(String name, URL url, int check_interval_mins, boolean is_anon) boolean
boolean
int
boolean
int
int
int
int
getKnownSubscriptions
(byte[] hash) Cached view of hash's subsgetLinkedSubscriptions
(byte[] hash) boolean
int
int
getSubscriptionCount
(boolean subscribed_only) getSubscriptions
(boolean subscribed_only) boolean
boolean
boolean
boolean
lookupAssociations
(byte[] hash, SubscriptionLookupListener listener) Deprecated.lookupAssociations
(byte[] hash, String description, SubscriptionLookupListener listener) Full lookuplookupAssociations
(byte[] hash, String description, String[] networks, SubscriptionLookupListener listener) void
markReadInAllSubscriptions
(SearchSubsResultBase[] results) void
removeListener
(SubscriptionManagerListener listener) void
setActivateSubscriptionOnChange
(boolean b) void
setAddHashDirs
(boolean b) void
setAutoDownloadMarkReadAfterDays
(int days) void
setAutoStartDownloads
(boolean auto_start) void
setAutoStartMaxMB
(int mb) void
setAutoStartMinMB
(int mb) void
setDefaultCheckFrequencyMins
(int mins) void
setMarkResultsInLibraryRead
(boolean b) void
setMaxNonDeletedResults
(int max) void
setRateLimits
(String limits) void
setRSSPublishEnabled
(boolean enabled) void
setSearchEnabled
(boolean enabled) void
setSubsDownloadEnabled
(boolean enabled) subscribeToRSS
(String name, URL url, int interval, boolean is_public, String creator_ref) Methods inherited from interface com.biglybt.pifimpl.local.utils.UtilitiesImpl.PluginSubscriptionManager
requestSubscription, requestSubscription
-
Method Details
-
create
- 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, boolean is_anon) throws SubscriptionException - Throws:
SubscriptionException
-
createSubscriptionTemplate
- Throws:
SubscriptionException
-
createFromURI
- Throws:
SubscriptionException
-
getKnownSubscriptionCount
int getKnownSubscriptionCount() -
getSubscriptionCount
int getSubscriptionCount(boolean subscribed_only) -
getSubscriptions
Subscription[] getSubscriptions() -
getSubscriptions
- Specified by:
getSubscriptions
in interfaceUtilitiesImpl.PluginSubscriptionManager
-
getSubscriptionByID
-
lookupAssociations
SubscriptionAssociationLookup lookupAssociations(byte[] hash, String description, SubscriptionLookupListener listener) throws SubscriptionException Full lookup- Parameters:
hash
-listener
-- Returns:
- Throws:
SubscriptionException
-
lookupAssociations
SubscriptionAssociationLookup lookupAssociations(byte[] hash, SubscriptionLookupListener listener) throws SubscriptionException Deprecated.- Parameters:
hash
-listener
-- Returns:
- Throws:
SubscriptionException
-
lookupAssociations
SubscriptionAssociationLookup lookupAssociations(byte[] hash, String description, String[] networks, SubscriptionLookupListener listener) throws SubscriptionException - Throws:
SubscriptionException
-
getKnownSubscriptions
Cached view of hash's subs- Parameters:
hash
-- Returns:
-
getLinkedSubscriptions
-
getScheduler
SubscriptionScheduler getScheduler() -
getDefaultCheckFrequencyMins
int getDefaultCheckFrequencyMins() -
setDefaultCheckFrequencyMins
void setDefaultCheckFrequencyMins(int mins) -
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() -
setMarkResultsInLibraryRead
void setMarkResultsInLibraryRead(boolean b) -
getMarkResultsInLibraryRead
boolean getMarkResultsInLibraryRead() -
getRSSLink
String getRSSLink() -
setRateLimits
-
getRateLimits
String getRateLimits() -
getAddHashDirs
boolean getAddHashDirs() -
setAddHashDirs
void setAddHashDirs(boolean b) -
addListener
-
removeListener
-
subscribeToSubscription
- Throws:
Exception
-
subscribeToRSS
Subscription subscribeToRSS(String name, URL url, int interval, boolean is_public, String creator_ref) throws Exception - Throws:
Exception
-
markReadInAllSubscriptions
-