Package com.biglybt.core.tag.impl
Class TagWithState
- java.lang.Object
-
- com.biglybt.core.tag.impl.TagBase
-
- com.biglybt.core.tag.impl.TagWithState
-
- All Implemented Interfaces:
Tag
,DataSourceResolver.ExportableDataSource
,SimpleTimer.TimerTickReceiver
,Tag
- Direct Known Subclasses:
TagDownloadWithState
public abstract class TagWithState extends TagBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TagWithState.ActivityCallback
-
Field Summary
Fields Modifier and Type Field Description private CopyOnWriteSet<Taggable>
objects
private boolean
removed
private TagFeatureNotifications
tag_notifications
private static java.lang.String
TP_KEY
private java.lang.String
TP_KEY_TAG_ADDED_TIME
-
Fields inherited from class com.biglybt.core.tag.impl.TagBase
AT_BYTES_DOWN, AT_BYTES_UP, AT_CAN_BE_PUBLIC, AT_COLOR_ID, AT_COLORS_ID, AT_DESCRIPTION, AT_EOS_ASSIGN_TAGS, AT_EOS_OPTIONS_TEMPLATE, AT_EOS_PM, AT_EOS_SCRIPT, AT_FL_COPY_COMP, AT_FL_COPY_COMP_OPT, AT_FL_INIT_LOC, AT_FL_INIT_LOC_OPT, AT_FL_MOVE_ASSIGN, AT_FL_MOVE_ASSIGN_OPT, AT_FL_MOVE_COMP, AT_FL_MOVE_COMP_OPT, AT_FL_MOVE_REM, AT_FL_MOVE_REM_OPT, AT_FL_PREVENT_DELETE, AT_FLAGS, AT_GROUP, AT_IMAGE_FILE, AT_IMAGE_ID, AT_IMAGE_SORT_ORDER, AT_LIMIT_ORDERING, AT_MAX_TAGGABLES, AT_NOTIFICATION_POST, AT_NOTIFICATION_PUBLISH, AT_ORIGINAL_NAME, AT_PROPERTY_PREFIX, AT_PUBLIC, AT_RATELIMIT_BOOST, AT_RATELIMIT_DOWN, AT_RATELIMIT_FP_SEEDING, AT_RATELIMIT_MAX_ACTIVE_DL, AT_RATELIMIT_MAX_AGGREGATE_SR, AT_RATELIMIT_MAX_AGGREGATE_SR_ACTION, AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY, AT_RATELIMIT_MAX_SR, AT_RATELIMIT_MAX_SR_ACTION, AT_RATELIMIT_MIN_SR, AT_RATELIMIT_UP, AT_RATELIMIT_UP_PRI, AT_REMOVAL_STRATEGY, AT_RSS_ENABLE, AT_VISIBLE, AT_XCODE_TARGET, tag_type
-
Fields inherited from interface com.biglybt.core.tag.Tag
FL_IS_FILTER, FL_NONE, TP_CONSTRAINT_ERROR, TP_SETTINGS_REQUESTED
-
-
Constructor Summary
Constructors Modifier Constructor Description TagWithState(TagTypeBase tt, int tag_id, java.lang.String name)
protected
TagWithState(TagTypeBase tt, int tag_id, java.util.Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTaggable(Taggable t)
protected void
checkNotifications(Taggable taggable, boolean is_add)
protected void
exportDetails(VuzeFile vf, java.util.Map map, boolean do_contents)
protected void
exportDetails(java.util.Map map, boolean do_contents)
long
getTaggableAddedTime(Taggable taggble)
java.util.Set<Taggable>
getTagged()
int
getTaggedCount()
boolean
hasTaggable(Taggable t)
protected boolean
isRemoved()
void
removeTag()
void
removeTaggable(Taggable t)
void
setTagName(java.lang.String name)
-
Methods inherited from class com.biglybt.core.tag.impl.TagBase
addListener, addTag, addTagListener, canBePublic, checkMaximumTaggables, closing, createTagProperty, destroy, exportDataSource, generate, getActionScript, getCanBePublicDefault, getColor, getColors, getDescription, getFirstPrioritySeeding, getFlag, getGroup, getGroupContainer, getImageFile, getImageID, getImageSortOrder, getManager, getMaxActiveDownloads, getMaximumTaggables, getNotifyMessageChannel, getOptionsTemplateHandler, getOrdering, getPostingNotifications, getPostMessageChannel, getPreventDelete, getProperty, getPublicDefault, getRecentHistory, getRemovalStrategy, getSupportedActions, getSupportedProperties, getTag, getTagAggregateShareRatio, getTagAssigns, getTagBoost, getTagCopyOnCompleteFolder, getTagCopyOnCompleteOptions, getTagDownloadTotal, getTaggables, getTagID, getTagInitialSaveFolder, getTagInitialSaveOptions, getTagMaxAggregateShareRatio, getTagMaxAggregateShareRatioAction, getTagMaxAggregateShareRatioHasPriority, getTagMaxShareRatio, getTagMaxShareRatioAction, getTagMinShareRatio, getTagMoveOnAssignFolder, getTagMoveOnAssignOptions, getTagMoveOnCompleteFolder, getTagMoveOnCompleteOptions, getTagMoveOnRemoveFolder, getTagMoveOnRemoveOptions, getTagName, getTagName, getTagNameRaw, getTagSessionDownloadTotal, getTagSessionDownloadTotalCurrent, getTagSessionUploadTotal, getTagSessionUploadTotalCurrent, getTagType, getTagUID, getTagUploadTotal, getTransientProperty, getVisibleDefault, getVuzeFile, initialized, isActionEnabled, isAnyActionEnabled, isColorDefault, isPublic, isTagAuto, isTagRSSFeedEnabled, isVisible, readBooleanAttribute, readLongAttribute, readLongListAttribute, readMapAttribute, readStringAttribute, readStringListAttribute, removeListener, removeTagListener, requestAttention, resetTagSessionDownloadTotal, resetTagSessionUploadTotal, setActionEnabled, setActionScript, setCanBePublic, setColor, setColors, setDescription, setFirstPrioritySeeding, setFlag, setGroup, setImageFile, setImageID, setImageSortOrder, setMaxActiveDownloads, setMaximumTaggables, setNotifyMessageChannel, setOrdering, setPostingNotifications, setPostMessageChannel, setPreventDelete, setPublic, setRecentHistoryRetention, setRemovalStrategy, setTagAssigns, setTagBoost, setTagCopyOnCompleteFolder, setTagCopyOnCompleteOptions, setTagInitialSaveFolder, setTagInitialSaveOptions, setTagMaxAggregateShareRatio, setTagMaxAggregateShareRatioAction, setTagMaxAggregateShareRatioHasPriority, setTagMaxShareRatio, setTagMaxShareRatioAction, setTagMinShareRatio, setTagMoveOnAssignFolder, setTagMoveOnAssignOptions, setTagMoveOnCompleteFolder, setTagMoveOnCompleteOptions, setTagMoveOnRemoveFolder, setTagMoveOnRemoveOptions, setTagRSSFeedEnabled, setTransientProperty, setVisible, supportsAction, supportsTagCopyOnComplete, supportsTagInitialSaveFolder, supportsTagMoveOnAssign, supportsTagMoveOnComplete, supportsTagMoveOnRemove, sync, tick, writeBooleanAttribute, writeLongAttribute, writeLongListAttribute, writeMapAttribute, writeStringAttribute, writeStringListAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.tag.Tag
dependsOnTags, getStatus, getTaggableTypes
-
-
-
-
Field Detail
-
TP_KEY
private static final java.lang.String TP_KEY
- See Also:
- Constant Field Values
-
objects
private final CopyOnWriteSet<Taggable> objects
-
TP_KEY_TAG_ADDED_TIME
private final java.lang.String TP_KEY_TAG_ADDED_TIME
-
tag_notifications
private TagFeatureNotifications tag_notifications
-
removed
private boolean removed
-
-
Constructor Detail
-
TagWithState
public TagWithState(TagTypeBase tt, int tag_id, java.lang.String name)
-
TagWithState
protected TagWithState(TagTypeBase tt, int tag_id, java.util.Map map)
-
-
Method Detail
-
exportDetails
protected void exportDetails(VuzeFile vf, java.util.Map map, boolean do_contents)
-
exportDetails
protected void exportDetails(java.util.Map map, boolean do_contents)
-
setTagName
public void setTagName(java.lang.String name) throws TagException
- Specified by:
setTagName
in interfaceTag
- Overrides:
setTagName
in classTagBase
- Throws:
TagException
-
getTaggableAddedTime
public long getTaggableAddedTime(Taggable taggble)
- Specified by:
getTaggableAddedTime
in interfaceTag
- Overrides:
getTaggableAddedTime
in classTagBase
-
addTaggable
public void addTaggable(Taggable t)
- Specified by:
addTaggable
in interfaceTag
- Overrides:
addTaggable
in classTagBase
-
removeTaggable
public void removeTaggable(Taggable t)
- Specified by:
removeTaggable
in interfaceTag
- Overrides:
removeTaggable
in classTagBase
-
checkNotifications
protected void checkNotifications(Taggable taggable, boolean is_add)
-
removeTag
public void removeTag()
-
isRemoved
protected boolean isRemoved()
-
getTaggedCount
public int getTaggedCount()
-
hasTaggable
public boolean hasTaggable(Taggable t)
-
getTagged
public java.util.Set<Taggable> getTagged()
-
-