com.aelitis.azureus.core.tag.impl
Class TagManagerImpl
java.lang.Object
com.aelitis.azureus.core.tag.impl.TagManagerImpl
- All Implemented Interfaces:
- TagManager, AEDiagnosticsEvidenceGenerator, DownloadCompletionListener
public class TagManagerImpl
- extends java.lang.Object
- implements TagManager, DownloadCompletionListener, AEDiagnosticsEvidenceGenerator
Method Summary |
void |
addTagFeatureListener(int features,
TagFeatureListener listener)
|
void |
addTaggableLifecycleListener(long taggable_type,
TaggableLifecycleListener listener)
|
void |
addTagManagerListener(TagManagerListener listener,
boolean fire_for_existing)
|
void |
addTagType(TagTypeBase tag_type)
|
protected void |
checkRSSFeeds(TagBase tag,
boolean enable)
|
protected java.lang.Object |
evalScript(Tag tag,
java.lang.String script,
DownloadManager dm,
java.lang.String intent_key)
|
protected void |
featureChanged(Tag tag,
int feature)
|
void |
generate(IndentWriter writer)
|
void |
generate(IndentWriter writer,
TagTypeBase tag_type)
|
void |
generate(IndentWriter writer,
TagTypeBase tag_type,
TagBase tag)
|
static TagManagerImpl |
getSingleton()
|
boolean |
getTagPublicDefault()
|
java.util.List<Tag> |
getTagsForTaggable(int tts,
Taggable taggable)
|
java.util.List<Tag> |
getTagsForTaggable(Taggable taggable)
|
TagType |
getTagType(int tag_type)
|
java.util.List<TagType> |
getTagTypes()
|
boolean |
isEnabled()
|
Tag |
lookupTagByUID(long tag_uid)
|
void |
onCompletion(Download d)
Called when a download enters a complete state (previously being
incomplete). |
protected java.lang.Boolean |
readBooleanAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.Boolean def)
|
protected java.lang.Long |
readLongAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.Long def)
|
protected java.lang.String |
readStringAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.String def)
|
protected java.lang.String[] |
readStringListAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.String[] def)
|
TaggableLifecycleHandler |
registerTaggableResolver(TaggableResolver resolver)
|
protected void |
removeConfig(Tag tag)
|
protected void |
removeConfig(TagType tag_type)
|
void |
removeTagFeatureListener(TagFeatureListener listener)
|
void |
removeTaggableLifecycleListener(long taggable_type,
TaggableLifecycleListener listener)
|
void |
removeTagManagerListener(TagManagerListener listener)
|
protected void |
removeTagType(TagTypeBase tag_type)
|
void |
setProcessingEnabled(boolean enabled)
|
void |
setTagPublicDefault(boolean pub)
|
protected void |
tagChanged(TagWithState tag)
|
protected void |
tagContentsChanged(TagWithState tag)
|
protected void |
tagCreated(TagWithState tag)
|
void |
taggableAdded(TagType tag_type,
Tag tag,
Taggable tagged)
|
void |
taggableRemoved(TagType tag_type,
Tag tag,
Taggable tagged)
|
protected void |
tagRemoved(TagWithState tag)
|
protected boolean |
writeBooleanAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.Boolean value)
|
protected boolean |
writeLongAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.Long value)
|
protected void |
writeStringAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.String value)
|
protected boolean |
writeStringListAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.String[] value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSingleton
public static TagManagerImpl getSingleton()
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface TagManager
setProcessingEnabled
public void setProcessingEnabled(boolean enabled)
- Specified by:
setProcessingEnabled
in interface TagManager
onCompletion
public void onCompletion(Download d)
- Description copied from interface:
DownloadCompletionListener
- Called when a download enters a complete state (previously being
incomplete).
- Specified by:
onCompletion
in interface DownloadCompletionListener
- Parameters:
d
- Download which has been completed.
evalScript
protected java.lang.Object evalScript(Tag tag,
java.lang.String script,
DownloadManager dm,
java.lang.String intent_key)
addTagType
public void addTagType(TagTypeBase tag_type)
getTagType
public TagType getTagType(int tag_type)
- Specified by:
getTagType
in interface TagManager
removeTagType
protected void removeTagType(TagTypeBase tag_type)
getTagTypes
public java.util.List<TagType> getTagTypes()
- Specified by:
getTagTypes
in interface TagManager
taggableAdded
public void taggableAdded(TagType tag_type,
Tag tag,
Taggable tagged)
taggableRemoved
public void taggableRemoved(TagType tag_type,
Tag tag,
Taggable tagged)
getTagsForTaggable
public java.util.List<Tag> getTagsForTaggable(Taggable taggable)
- Specified by:
getTagsForTaggable
in interface TagManager
getTagsForTaggable
public java.util.List<Tag> getTagsForTaggable(int tts,
Taggable taggable)
- Specified by:
getTagsForTaggable
in interface TagManager
lookupTagByUID
public Tag lookupTagByUID(long tag_uid)
- Specified by:
lookupTagByUID
in interface TagManager
registerTaggableResolver
public TaggableLifecycleHandler registerTaggableResolver(TaggableResolver resolver)
- Specified by:
registerTaggableResolver
in interface TagManager
setTagPublicDefault
public void setTagPublicDefault(boolean pub)
- Specified by:
setTagPublicDefault
in interface TagManager
getTagPublicDefault
public boolean getTagPublicDefault()
- Specified by:
getTagPublicDefault
in interface TagManager
checkRSSFeeds
protected void checkRSSFeeds(TagBase tag,
boolean enable)
addTagManagerListener
public void addTagManagerListener(TagManagerListener listener,
boolean fire_for_existing)
- Specified by:
addTagManagerListener
in interface TagManager
removeTagManagerListener
public void removeTagManagerListener(TagManagerListener listener)
- Specified by:
removeTagManagerListener
in interface TagManager
addTagFeatureListener
public void addTagFeatureListener(int features,
TagFeatureListener listener)
- Specified by:
addTagFeatureListener
in interface TagManager
removeTagFeatureListener
public void removeTagFeatureListener(TagFeatureListener listener)
- Specified by:
removeTagFeatureListener
in interface TagManager
featureChanged
protected void featureChanged(Tag tag,
int feature)
addTaggableLifecycleListener
public void addTaggableLifecycleListener(long taggable_type,
TaggableLifecycleListener listener)
- Specified by:
addTaggableLifecycleListener
in interface TagManager
removeTaggableLifecycleListener
public void removeTaggableLifecycleListener(long taggable_type,
TaggableLifecycleListener listener)
- Specified by:
removeTaggableLifecycleListener
in interface TagManager
tagCreated
protected void tagCreated(TagWithState tag)
tagChanged
protected void tagChanged(TagWithState tag)
tagRemoved
protected void tagRemoved(TagWithState tag)
tagContentsChanged
protected void tagContentsChanged(TagWithState tag)
readBooleanAttribute
protected java.lang.Boolean readBooleanAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.Boolean def)
writeBooleanAttribute
protected boolean writeBooleanAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.Boolean value)
readLongAttribute
protected java.lang.Long readLongAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.Long def)
writeLongAttribute
protected boolean writeLongAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.Long value)
readStringAttribute
protected java.lang.String readStringAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.String def)
writeStringAttribute
protected void writeStringAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.String value)
readStringListAttribute
protected java.lang.String[] readStringListAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.String[] def)
writeStringListAttribute
protected boolean writeStringListAttribute(TagTypeBase tag_type,
TagBase tag,
java.lang.String attr,
java.lang.String[] value)
removeConfig
protected void removeConfig(TagType tag_type)
removeConfig
protected void removeConfig(Tag tag)
generate
public void generate(IndentWriter writer)
- Specified by:
generate
in interface AEDiagnosticsEvidenceGenerator
generate
public void generate(IndentWriter writer,
TagTypeBase tag_type)
generate
public void generate(IndentWriter writer,
TagTypeBase tag_type,
TagBase tag)