com.aelitis.azureus.core.subs
Interface Subscription
- All Superinterfaces:
- UtilitiesImpl.PluginSubscription
- All Known Implementing Classes:
- SubscriptionImpl
public interface Subscription
- extends UtilitiesImpl.PluginSubscription
AZ_VERSION
static final int AZ_VERSION
- See Also:
- Constant Field Values
VUZE_FILE_COMPONENT_SUBSCRIPTION_KEY
static final java.lang.Object VUZE_FILE_COMPONENT_SUBSCRIPTION_KEY
ADD_TYPE_CREATE
static final int ADD_TYPE_CREATE
- See Also:
- Constant Field Values
ADD_TYPE_IMPORT
static final int ADD_TYPE_IMPORT
- See Also:
- Constant Field Values
ADD_TYPE_LOOKUP
static final int ADD_TYPE_LOOKUP
- See Also:
- Constant Field Values
getName
java.lang.String getName()
- Returns local name if set
- Specified by:
getName
in interface UtilitiesImpl.PluginSubscription
- Returns:
getName
java.lang.String getName(boolean use_local)
setLocalName
void setLocalName(java.lang.String str)
setName
void setName(java.lang.String str)
throws SubscriptionException
- Throws:
SubscriptionException
getNameEx
java.lang.String getNameEx()
getQueryKey
java.lang.String getQueryKey()
getID
java.lang.String getID()
- Specified by:
getID
in interface UtilitiesImpl.PluginSubscription
getPublicKey
byte[] getPublicKey()
getVersion
int getVersion()
getAddTime
long getAddTime()
getAddType
int getAddType()
getHighestVersion
int getHighestVersion()
resetHighestVersion
void resetHighestVersion()
getAZVersion
int getAZVersion()
isMine
boolean isMine()
isPublic
boolean isPublic()
setPublic
void setPublic(boolean is_public)
throws SubscriptionException
- Throws:
SubscriptionException
isAnonymous
boolean isAnonymous()
isUpdateable
boolean isUpdateable()
isShareable
boolean isShareable()
isSearchTemplate
boolean isSearchTemplate()
- Specified by:
isSearchTemplate
in interface UtilitiesImpl.PluginSubscription
isSearchTemplateImportable
boolean isSearchTemplateImportable()
getSearchTemplateVuzeFile
VuzeFile getSearchTemplateVuzeFile()
getJSON
java.lang.String getJSON()
throws SubscriptionException
- Throws:
SubscriptionException
setJSON
boolean setJSON(java.lang.String json)
throws SubscriptionException
- Throws:
SubscriptionException
isSubscribed
boolean isSubscribed()
setSubscribed
void setSubscribed(boolean subscribed)
getPopularity
void getPopularity(SubscriptionPopularityListener listener)
throws SubscriptionException
- Throws:
SubscriptionException
setDetails
boolean setDetails(java.lang.String name,
boolean is_public,
java.lang.String json)
throws SubscriptionException
- Throws:
SubscriptionException
getReferer
java.lang.String getReferer()
getCachedPopularity
long getCachedPopularity()
addAssociation
void addAssociation(byte[] hash)
addPotentialAssociation
void addPotentialAssociation(java.lang.String result_id,
java.lang.String key)
getAssociationCount
int getAssociationCount()
hasAssociation
boolean hasAssociation(byte[] hash)
getCategory
java.lang.String getCategory()
setCategory
void setCategory(java.lang.String category)
getTagID
long getTagID()
- Tag UID
setTagID
void setTagID(long tag_id)
getParent
java.lang.String getParent()
setParent
void setParent(java.lang.String parent)
getEngine
Engine getEngine()
throws SubscriptionException
- Throws:
SubscriptionException
cloneWithNewEngine
Subscription cloneWithNewEngine(Engine engine)
throws SubscriptionException
- Throws:
SubscriptionException
isAutoDownloadSupported
boolean isAutoDownloadSupported()
getVuzeFile
VuzeFile getVuzeFile()
throws SubscriptionException
- Throws:
SubscriptionException
setCreatorRef
void setCreatorRef(java.lang.String str)
getCreatorRef
java.lang.String getCreatorRef()
reset
void reset()
remove
void remove()
getManager
SubscriptionManager getManager()
getHistory
SubscriptionHistory getHistory()
getResults
SubscriptionResult[] getResults(boolean include_deleted)
- shortcut to help plugin interface
- Specified by:
getResults
in interface UtilitiesImpl.PluginSubscription
- Parameters:
l
-
getURI
java.lang.String getURI()
getFilters
SubscriptionResultFilter getFilters()
throws SubscriptionException
- Throws:
SubscriptionException
requestAttention
void requestAttention()
addListener
void addListener(SubscriptionListener l)
removeListener
void removeListener(SubscriptionListener l)
setUserData
void setUserData(java.lang.Object key,
java.lang.Object data)
getUserData
java.lang.Object getUserData(java.lang.Object key)
getString
java.lang.String getString()