Package com.biglybt.core.tag.impl
Class TagBase
- java.lang.Object
-
- com.biglybt.core.tag.impl.TagBase
-
- All Implemented Interfaces:
Tag
,DataSourceResolver.ExportableDataSource
,SimpleTimer.TimerTickReceiver
,Tag
- Direct Known Subclasses:
CategoryImpl
,OpenTorrentOptionsWindow.DiscoveredTag
,SpeedLimitHandler.PeerSet.TagPeerImpl
,TagWithState
public abstract class TagBase extends java.lang.Object implements Tag, SimpleTimer.TimerTickReceiver, DataSourceResolver.ExportableDataSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
TagBase.TagPropertyImpl
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
AT_BYTES_DOWN
protected static java.lang.String
AT_BYTES_UP
protected static java.lang.String
AT_CAN_BE_PUBLIC
protected static java.lang.String
AT_COLOR_ID
protected static java.lang.String
AT_COLORS_ID
protected static java.lang.String
AT_DESCRIPTION
protected static java.lang.String
AT_EOS_ASSIGN_TAGS
protected static java.lang.String
AT_EOS_OPTIONS_TEMPLATE
protected static java.lang.String
AT_EOS_PM
protected static java.lang.String
AT_EOS_SCRIPT
protected static java.lang.String
AT_FL_COPY_COMP
protected static java.lang.String
AT_FL_COPY_COMP_OPT
protected static java.lang.String
AT_FL_INIT_LOC
protected static java.lang.String
AT_FL_INIT_LOC_OPT
protected static java.lang.String
AT_FL_MOVE_ASSIGN
protected static java.lang.String
AT_FL_MOVE_ASSIGN_OPT
protected static java.lang.String
AT_FL_MOVE_COMP
protected static java.lang.String
AT_FL_MOVE_COMP_OPT
protected static java.lang.String
AT_FL_MOVE_REM
protected static java.lang.String
AT_FL_MOVE_REM_OPT
protected static java.lang.String
AT_FL_PREVENT_DELETE
protected static java.lang.String
AT_FLAGS
protected static java.lang.String
AT_GROUP
protected static java.lang.String
AT_IMAGE_FILE
protected static java.lang.String
AT_IMAGE_ID
protected static java.lang.String
AT_IMAGE_SORT_ORDER
protected static java.lang.String
AT_LIMIT_ORDERING
protected static java.lang.String
AT_MAX_TAGGABLES
protected static java.lang.String
AT_NOTIFICATION_POST
protected static java.lang.String
AT_NOTIFICATION_PUBLISH
protected static java.lang.String
AT_ORIGINAL_NAME
protected static java.lang.String
AT_PROPERTY_PREFIX
protected static java.lang.String
AT_PUBLIC
protected static java.lang.String
AT_RATELIMIT_BOOST
protected static java.lang.String
AT_RATELIMIT_DOWN
protected static java.lang.String
AT_RATELIMIT_FP_SEEDING
protected static java.lang.String
AT_RATELIMIT_MAX_ACTIVE_DL
protected static java.lang.String
AT_RATELIMIT_MAX_AGGREGATE_SR
protected static java.lang.String
AT_RATELIMIT_MAX_AGGREGATE_SR_ACTION
protected static java.lang.String
AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY
protected static java.lang.String
AT_RATELIMIT_MAX_SR
protected static java.lang.String
AT_RATELIMIT_MAX_SR_ACTION
protected static java.lang.String
AT_RATELIMIT_MIN_SR
protected static java.lang.String
AT_RATELIMIT_UP
protected static java.lang.String
AT_RATELIMIT_UP_PRI
protected static java.lang.String
AT_REMOVAL_STRATEGY
protected static java.lang.String
AT_RSS_ENABLE
protected static java.lang.String
AT_VISIBLE
protected static java.lang.String
AT_XCODE_TARGET
private int[]
colour
private long[]
colours
private java.lang.String
description
private static java.lang.String[]
EMPTY_STRING_LIST
private long
flags
private java.lang.String
group
private long[]
history
private static int
HISTORY_MAX_SECS
private int
history_pos
private boolean
history_retention_required
private boolean
history_wrapped
private int
image_sort_order
private java.lang.Boolean
is_public
private java.lang.Boolean
is_visible
private java.util.Map<TagListener,TagListener>
listener_map
private static java.util.Map<java.lang.Long,long[][]>
session_cache
private long[]
session_down
private long[]
session_down_reset
private long[]
session_up
private long[]
session_up_reset
private ListenerManager<TagListener>
t_listeners
private TagFeatureFileLocation
tag_fl
private int
tag_id
private TagFeatureLimits
tag_limits
private java.lang.String
tag_name
private TagFeatureRateLimit
tag_rl
private TagFeatureRSSFeed
tag_rss
(package private) TagTypeBase
tag_type
private boolean
timer_registered
private static int
TL_ADD
private static int
TL_REMOVE
private static int
TL_SYNC
private long[]
total_down_at_start
private long[]
total_up_at_start
private java.util.HashMap<java.lang.String,java.lang.Object>
transient_properties
-
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 protected
TagBase(TagTypeBase _tag_type, int _tag_id, java.lang.String _tag_name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(TagListener listener)
protected void
addTag()
void
addTaggable(Taggable t)
void
addTagListener(TagListener listener, boolean fire_for_existing)
boolean
canBePublic()
protected void
checkMaximumTaggables()
protected void
closing()
protected TagFeatureProperties.TagProperty
createTagProperty(java.lang.String name, int type)
private int[]
decodeRGB(java.lang.String str)
protected void
destroy()
private java.lang.String
encodeRGB(int[] rgb)
DataSourceResolver.ExportedDataSource
exportDataSource()
void
generate(IndentWriter writer)
java.lang.String
getActionScript()
protected boolean
getCanBePublicDefault()
int[]
getColor()
long[]
getColors()
java.lang.String
getDescription()
boolean
getFirstPrioritySeeding()
boolean
getFlag(long flag)
java.lang.String
getGroup()
TagGroup
getGroupContainer()
java.lang.String
getImageFile()
java.lang.String
getImageID()
int
getImageSortOrder()
protected TagManagerImpl
getManager()
int
getMaxActiveDownloads()
int
getMaximumTaggables()
java.lang.String
getNotifyMessageChannel()
TagFeatureExecOnAssign.OptionsTemplateHandler
getOptionsTemplateHandler()
int
getOrdering()
int
getPostingNotifications()
java.lang.String
getPostMessageChannel()
boolean
getPreventDelete()
TagFeatureProperties.TagProperty
getProperty(java.lang.String name)
protected boolean
getPublicDefault()
int[][]
getRecentHistory()
int
getRemovalStrategy()
int
getSupportedActions()
TagFeatureProperties.TagProperty[]
getSupportedProperties()
Tag
getTag()
int
getTagAggregateShareRatio()
java.util.List<Tag>
getTagAssigns()
boolean
getTagBoost()
java.io.File
getTagCopyOnCompleteFolder()
long
getTagCopyOnCompleteOptions()
long[]
getTagDownloadTotal()
long
getTaggableAddedTime(Taggable taggble)
java.util.List<Taggable>
getTaggables()
int
getTagID()
Unique ID within this tag typejava.io.File
getTagInitialSaveFolder()
long
getTagInitialSaveOptions()
int
getTagMaxAggregateShareRatio()
int
getTagMaxAggregateShareRatioAction()
boolean
getTagMaxAggregateShareRatioHasPriority()
int
getTagMaxShareRatio()
int
getTagMaxShareRatioAction()
int
getTagMinShareRatio()
java.io.File
getTagMoveOnAssignFolder()
long
getTagMoveOnAssignOptions()
java.io.File
getTagMoveOnCompleteFolder()
long
getTagMoveOnCompleteOptions()
java.io.File
getTagMoveOnRemoveFolder()
long
getTagMoveOnRemoveOptions()
java.lang.String
getTagName()
java.lang.String
getTagName(boolean localize)
protected java.lang.String
getTagNameRaw()
long[]
getTagSessionDownloadTotal()
protected long[]
getTagSessionDownloadTotalCurrent()
private long[]
getTagSessionDownloadTotalRaw()
long[]
getTagSessionUploadTotal()
protected long[]
getTagSessionUploadTotalCurrent()
private long[]
getTagSessionUploadTotalRaw()
TagTypeBase
getTagType()
Unique type denoting this species of taglong
getTagUID()
Unique across tag types and can be used to lookup by TagManager::lookuptagByUIDlong[]
getTagUploadTotal()
java.lang.Object
getTransientProperty(java.lang.String property)
protected boolean
getVisibleDefault()
VuzeFile
getVuzeFile()
protected void
initialized()
boolean
isActionEnabled(int action)
boolean
isAnyActionEnabled()
boolean
isColorDefault()
boolean
isPublic()
boolean[]
isTagAuto()
boolean
isTagRSSFeedEnabled()
boolean
isVisible()
private void
loadPersistentStuff()
private void
loadTransientStuff()
protected java.lang.Boolean
readBooleanAttribute(java.lang.String attr, java.lang.Boolean def)
protected java.lang.Long
readLongAttribute(java.lang.String attr, java.lang.Long def)
protected long[]
readLongListAttribute(java.lang.String attr, long[] def)
protected java.util.Map<java.lang.String,java.lang.Object>
readMapAttribute(java.lang.String attr, java.util.Map<java.lang.String,java.lang.Object> def)
protected java.lang.String
readStringAttribute(java.lang.String attr, java.lang.String def)
protected java.lang.String[]
readStringListAttribute(java.lang.String attr, java.lang.String[] def)
void
removeListener(TagListener listener)
void
removeTag()
void
removeTaggable(Taggable t)
void
removeTagListener(TagListener listener)
void
requestAttention()
void
resetTagSessionDownloadTotal()
void
resetTagSessionUploadTotal()
private void
savePersistentStuff()
private void
saveTransientStuff()
void
setActionEnabled(int action, boolean enabled)
void
setActionScript(java.lang.String script)
void
setCanBePublic(boolean can_be_public)
void
setColor(int[] rgb)
void
setColors(long[] params)
void
setDescription(java.lang.String str)
void
setFirstPrioritySeeding(boolean priority)
void
setFlag(long flag, boolean value)
void
setGroup(java.lang.String new_group)
void
setImageFile(java.lang.String id)
void
setImageID(java.lang.String id)
void
setImageSortOrder(int order)
void
setMaxActiveDownloads(int max)
void
setMaximumTaggables(int max)
void
setNotifyMessageChannel(java.lang.String channel)
void
setOrdering(int id)
void
setPostingNotifications(int flags)
void
setPostMessageChannel(java.lang.String channel)
void
setPreventDelete(boolean b)
void
setPublic(boolean v)
void
setRecentHistoryRetention(boolean required)
void
setRemovalStrategy(int id)
void
setTagAssigns(java.util.List<Tag> tags)
void
setTagBoost(boolean boost)
void
setTagCopyOnCompleteFolder(java.io.File folder)
void
setTagCopyOnCompleteOptions(long options)
void
setTagInitialSaveFolder(java.io.File folder)
void
setTagInitialSaveOptions(long options)
void
setTagMaxAggregateShareRatio(int sr)
void
setTagMaxAggregateShareRatioAction(int action)
void
setTagMaxAggregateShareRatioHasPriority(boolean priority)
void
setTagMaxShareRatio(int sr)
void
setTagMaxShareRatioAction(int action)
void
setTagMinShareRatio(int sr)
void
setTagMoveOnAssignFolder(java.io.File folder)
void
setTagMoveOnAssignOptions(long options)
void
setTagMoveOnCompleteFolder(java.io.File folder)
void
setTagMoveOnCompleteOptions(long options)
void
setTagMoveOnRemoveFolder(java.io.File folder)
void
setTagMoveOnRemoveOptions(long options)
void
setTagName(java.lang.String name)
void
setTagRSSFeedEnabled(boolean enable)
void
setTransientProperty(java.lang.String property, java.lang.Object value)
void
setVisible(boolean v)
boolean
supportsAction(int action)
boolean
supportsTagCopyOnComplete()
boolean
supportsTagInitialSaveFolder()
boolean
supportsTagMoveOnAssign()
boolean
supportsTagMoveOnComplete()
boolean
supportsTagMoveOnRemove()
protected void
sync()
void
tick(long mono_now, int count)
protected boolean
writeBooleanAttribute(java.lang.String attr, java.lang.Boolean value)
protected boolean
writeLongAttribute(java.lang.String attr, long value)
protected boolean
writeLongListAttribute(java.lang.String attr, long[] value)
protected void
writeMapAttribute(java.lang.String attr, java.util.Map<java.lang.String,java.lang.Object> value)
protected boolean
writeStringAttribute(java.lang.String attr, java.lang.String value)
protected boolean
writeStringListAttribute(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
-
Methods inherited from interface com.biglybt.core.tag.Tag
dependsOnTags, getStatus, getTaggableTypes, getTagged, getTaggedCount, hasTaggable
-
-
-
-
Field Detail
-
AT_RATELIMIT_UP
protected static final java.lang.String AT_RATELIMIT_UP
- See Also:
- Constant Field Values
-
AT_RATELIMIT_DOWN
protected static final java.lang.String AT_RATELIMIT_DOWN
- See Also:
- Constant Field Values
-
AT_VISIBLE
protected static final java.lang.String AT_VISIBLE
- See Also:
- Constant Field Values
-
AT_PUBLIC
protected static final java.lang.String AT_PUBLIC
- See Also:
- Constant Field Values
-
AT_FLAGS
protected static final java.lang.String AT_FLAGS
- See Also:
- Constant Field Values
-
AT_GROUP
protected static final java.lang.String AT_GROUP
- See Also:
- Constant Field Values
-
AT_CAN_BE_PUBLIC
protected static final java.lang.String AT_CAN_BE_PUBLIC
- See Also:
- Constant Field Values
-
AT_ORIGINAL_NAME
protected static final java.lang.String AT_ORIGINAL_NAME
- See Also:
- Constant Field Values
-
AT_IMAGE_ID
protected static final java.lang.String AT_IMAGE_ID
- See Also:
- Constant Field Values
-
AT_IMAGE_FILE
protected static final java.lang.String AT_IMAGE_FILE
- See Also:
- Constant Field Values
-
AT_IMAGE_SORT_ORDER
protected static final java.lang.String AT_IMAGE_SORT_ORDER
- See Also:
- Constant Field Values
-
AT_COLOR_ID
protected static final java.lang.String AT_COLOR_ID
- See Also:
- Constant Field Values
-
AT_COLORS_ID
protected static final java.lang.String AT_COLORS_ID
- See Also:
- Constant Field Values
-
AT_RSS_ENABLE
protected static final java.lang.String AT_RSS_ENABLE
- See Also:
- Constant Field Values
-
AT_RATELIMIT_UP_PRI
protected static final java.lang.String AT_RATELIMIT_UP_PRI
- See Also:
- Constant Field Values
-
AT_XCODE_TARGET
protected static final java.lang.String AT_XCODE_TARGET
- See Also:
- Constant Field Values
-
AT_FL_PREVENT_DELETE
protected static final java.lang.String AT_FL_PREVENT_DELETE
- See Also:
- Constant Field Values
-
AT_FL_MOVE_COMP
protected static final java.lang.String AT_FL_MOVE_COMP
- See Also:
- Constant Field Values
-
AT_FL_MOVE_COMP_OPT
protected static final java.lang.String AT_FL_MOVE_COMP_OPT
- See Also:
- Constant Field Values
-
AT_FL_MOVE_REM
protected static final java.lang.String AT_FL_MOVE_REM
- See Also:
- Constant Field Values
-
AT_FL_MOVE_REM_OPT
protected static final java.lang.String AT_FL_MOVE_REM_OPT
- See Also:
- Constant Field Values
-
AT_FL_COPY_COMP
protected static final java.lang.String AT_FL_COPY_COMP
- See Also:
- Constant Field Values
-
AT_FL_COPY_COMP_OPT
protected static final java.lang.String AT_FL_COPY_COMP_OPT
- See Also:
- Constant Field Values
-
AT_FL_INIT_LOC
protected static final java.lang.String AT_FL_INIT_LOC
- See Also:
- Constant Field Values
-
AT_FL_INIT_LOC_OPT
protected static final java.lang.String AT_FL_INIT_LOC_OPT
- See Also:
- Constant Field Values
-
AT_FL_MOVE_ASSIGN
protected static final java.lang.String AT_FL_MOVE_ASSIGN
- See Also:
- Constant Field Values
-
AT_FL_MOVE_ASSIGN_OPT
protected static final java.lang.String AT_FL_MOVE_ASSIGN_OPT
- See Also:
- Constant Field Values
-
AT_RATELIMIT_MIN_SR
protected static final java.lang.String AT_RATELIMIT_MIN_SR
- See Also:
- Constant Field Values
-
AT_RATELIMIT_MAX_SR
protected static final java.lang.String AT_RATELIMIT_MAX_SR
- See Also:
- Constant Field Values
-
AT_RATELIMIT_MAX_SR_ACTION
protected static final java.lang.String AT_RATELIMIT_MAX_SR_ACTION
- See Also:
- Constant Field Values
-
AT_RATELIMIT_MAX_AGGREGATE_SR
protected static final java.lang.String AT_RATELIMIT_MAX_AGGREGATE_SR
- See Also:
- Constant Field Values
-
AT_RATELIMIT_MAX_AGGREGATE_SR_ACTION
protected static final java.lang.String AT_RATELIMIT_MAX_AGGREGATE_SR_ACTION
- See Also:
- Constant Field Values
-
AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY
protected static final java.lang.String AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY
- See Also:
- Constant Field Values
-
AT_RATELIMIT_FP_SEEDING
protected static final java.lang.String AT_RATELIMIT_FP_SEEDING
- See Also:
- Constant Field Values
-
AT_RATELIMIT_BOOST
protected static final java.lang.String AT_RATELIMIT_BOOST
- See Also:
- Constant Field Values
-
AT_RATELIMIT_MAX_ACTIVE_DL
protected static final java.lang.String AT_RATELIMIT_MAX_ACTIVE_DL
- See Also:
- Constant Field Values
-
AT_PROPERTY_PREFIX
protected static final java.lang.String AT_PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
AT_BYTES_UP
protected static final java.lang.String AT_BYTES_UP
- See Also:
- Constant Field Values
-
AT_BYTES_DOWN
protected static final java.lang.String AT_BYTES_DOWN
- See Also:
- Constant Field Values
-
AT_DESCRIPTION
protected static final java.lang.String AT_DESCRIPTION
- See Also:
- Constant Field Values
-
AT_MAX_TAGGABLES
protected static final java.lang.String AT_MAX_TAGGABLES
- See Also:
- Constant Field Values
-
AT_REMOVAL_STRATEGY
protected static final java.lang.String AT_REMOVAL_STRATEGY
- See Also:
- Constant Field Values
-
AT_EOS_SCRIPT
protected static final java.lang.String AT_EOS_SCRIPT
- See Also:
- Constant Field Values
-
AT_EOS_OPTIONS_TEMPLATE
protected static final java.lang.String AT_EOS_OPTIONS_TEMPLATE
- See Also:
- Constant Field Values
-
AT_EOS_PM
protected static final java.lang.String AT_EOS_PM
- See Also:
- Constant Field Values
-
AT_NOTIFICATION_POST
protected static final java.lang.String AT_NOTIFICATION_POST
- See Also:
- Constant Field Values
-
AT_NOTIFICATION_PUBLISH
protected static final java.lang.String AT_NOTIFICATION_PUBLISH
- See Also:
- Constant Field Values
-
AT_LIMIT_ORDERING
protected static final java.lang.String AT_LIMIT_ORDERING
- See Also:
- Constant Field Values
-
AT_EOS_ASSIGN_TAGS
protected static final java.lang.String AT_EOS_ASSIGN_TAGS
- See Also:
- Constant Field Values
-
EMPTY_STRING_LIST
private static final java.lang.String[] EMPTY_STRING_LIST
-
tag_type
final TagTypeBase tag_type
-
tag_id
private final int tag_id
-
tag_name
private java.lang.String tag_name
-
TL_ADD
private static final int TL_ADD
- See Also:
- Constant Field Values
-
TL_REMOVE
private static final int TL_REMOVE
- See Also:
- Constant Field Values
-
TL_SYNC
private static final int TL_SYNC
- See Also:
- Constant Field Values
-
t_listeners
private final ListenerManager<TagListener> t_listeners
-
listener_map
private final java.util.Map<TagListener,TagListener> listener_map
-
is_visible
private java.lang.Boolean is_visible
-
is_public
private java.lang.Boolean is_public
-
flags
private long flags
-
group
private java.lang.String group
-
colour
private int[] colour
-
colours
private long[] colours
-
description
private java.lang.String description
-
image_sort_order
private int image_sort_order
-
tag_rl
private TagFeatureRateLimit tag_rl
-
tag_rss
private TagFeatureRSSFeed tag_rss
-
tag_fl
private TagFeatureFileLocation tag_fl
-
tag_limits
private TagFeatureLimits tag_limits
-
transient_properties
private java.util.HashMap<java.lang.String,java.lang.Object> transient_properties
-
session_cache
private static final java.util.Map<java.lang.Long,long[][]> session_cache
-
total_up_at_start
private long[] total_up_at_start
-
total_down_at_start
private long[] total_down_at_start
-
session_up
private long[] session_up
-
session_down
private long[] session_down
-
session_up_reset
private long[] session_up_reset
-
session_down_reset
private long[] session_down_reset
-
HISTORY_MAX_SECS
private static final int HISTORY_MAX_SECS
- See Also:
- Constant Field Values
-
history_retention_required
private volatile boolean history_retention_required
-
history
private long[] history
-
history_pos
private int history_pos
-
history_wrapped
private boolean history_wrapped
-
timer_registered
private boolean timer_registered
-
-
Constructor Detail
-
TagBase
protected TagBase(TagTypeBase _tag_type, int _tag_id, java.lang.String _tag_name)
-
-
Method Detail
-
initialized
protected void initialized()
-
exportDataSource
public DataSourceResolver.ExportedDataSource exportDataSource()
- Specified by:
exportDataSource
in interfaceDataSourceResolver.ExportableDataSource
-
getTag
public Tag getTag()
-
addTag
protected void addTag()
-
getManager
protected TagManagerImpl getManager()
-
getTagType
public TagTypeBase getTagType()
Description copied from interface:Tag
Unique type denoting this species of tag- Specified by:
getTagType
in interfaceTag
- Returns:
-
getTagID
public int getTagID()
Description copied from interface:Tag
Unique ID within this tag type
-
getTagUID
public long getTagUID()
Description copied from interface:Tag
Unique across tag types and can be used to lookup by TagManager::lookuptagByUID
-
getTagName
public java.lang.String getTagName()
- Specified by:
getTagName
in interfaceTag
-
getTagNameRaw
protected java.lang.String getTagNameRaw()
-
getTagName
public java.lang.String getTagName(boolean localize)
- Specified by:
getTagName
in interfaceTag
-
setTagName
public void setTagName(java.lang.String name) throws TagException
- Specified by:
setTagName
in interfaceTag
- Throws:
TagException
-
getPublicDefault
protected boolean getPublicDefault()
-
setCanBePublic
public void setCanBePublic(boolean can_be_public)
- Specified by:
setCanBePublic
in interfaceTag
-
canBePublic
public boolean canBePublic()
- Specified by:
canBePublic
in interfaceTag
-
getCanBePublicDefault
protected boolean getCanBePublicDefault()
-
isTagAuto
public boolean[] isTagAuto()
-
setVisible
public void setVisible(boolean v)
- Specified by:
setVisible
in interfaceTag
-
getGroupContainer
public TagGroup getGroupContainer()
- Specified by:
getGroupContainer
in interfaceTag
-
getVisibleDefault
protected boolean getVisibleDefault()
-
getImageID
public java.lang.String getImageID()
- Specified by:
getImageID
in interfaceTag
-
setImageID
public void setImageID(java.lang.String id)
- Specified by:
setImageID
in interfaceTag
-
getImageFile
public java.lang.String getImageFile()
- Specified by:
getImageFile
in interfaceTag
-
setImageFile
public void setImageFile(java.lang.String id)
- Specified by:
setImageFile
in interfaceTag
-
setImageSortOrder
public void setImageSortOrder(int order)
- Specified by:
setImageSortOrder
in interfaceTag
-
getImageSortOrder
public int getImageSortOrder()
- Specified by:
getImageSortOrder
in interfaceTag
-
decodeRGB
private int[] decodeRGB(java.lang.String str)
-
encodeRGB
private java.lang.String encodeRGB(int[] rgb)
-
isColorDefault
public boolean isColorDefault()
- Specified by:
isColorDefault
in interfaceTag
-
isTagRSSFeedEnabled
public boolean isTagRSSFeedEnabled()
-
setTagRSSFeedEnabled
public void setTagRSSFeedEnabled(boolean enable)
-
getPreventDelete
public boolean getPreventDelete()
-
setPreventDelete
public void setPreventDelete(boolean b)
-
getTagBoost
public boolean getTagBoost()
-
setTagBoost
public void setTagBoost(boolean boost)
-
getMaxActiveDownloads
public int getMaxActiveDownloads()
-
setMaxActiveDownloads
public void setMaxActiveDownloads(int max)
-
supportsTagInitialSaveFolder
public boolean supportsTagInitialSaveFolder()
-
getTagInitialSaveFolder
public java.io.File getTagInitialSaveFolder()
-
setTagInitialSaveFolder
public void setTagInitialSaveFolder(java.io.File folder)
-
getTagInitialSaveOptions
public long getTagInitialSaveOptions()
-
setTagInitialSaveOptions
public void setTagInitialSaveOptions(long options)
-
supportsTagMoveOnComplete
public boolean supportsTagMoveOnComplete()
-
getTagMoveOnCompleteFolder
public java.io.File getTagMoveOnCompleteFolder()
-
setTagMoveOnCompleteFolder
public void setTagMoveOnCompleteFolder(java.io.File folder)
-
getTagMoveOnCompleteOptions
public long getTagMoveOnCompleteOptions()
-
setTagMoveOnCompleteOptions
public void setTagMoveOnCompleteOptions(long options)
-
supportsTagCopyOnComplete
public boolean supportsTagCopyOnComplete()
-
getTagCopyOnCompleteFolder
public java.io.File getTagCopyOnCompleteFolder()
-
setTagCopyOnCompleteFolder
public void setTagCopyOnCompleteFolder(java.io.File folder)
-
getTagCopyOnCompleteOptions
public long getTagCopyOnCompleteOptions()
-
setTagCopyOnCompleteOptions
public void setTagCopyOnCompleteOptions(long options)
-
supportsTagMoveOnRemove
public boolean supportsTagMoveOnRemove()
-
getTagMoveOnRemoveFolder
public java.io.File getTagMoveOnRemoveFolder()
-
setTagMoveOnRemoveFolder
public void setTagMoveOnRemoveFolder(java.io.File folder)
-
getTagMoveOnRemoveOptions
public long getTagMoveOnRemoveOptions()
-
setTagMoveOnRemoveOptions
public void setTagMoveOnRemoveOptions(long options)
-
supportsTagMoveOnAssign
public boolean supportsTagMoveOnAssign()
-
getTagMoveOnAssignFolder
public java.io.File getTagMoveOnAssignFolder()
-
setTagMoveOnAssignFolder
public void setTagMoveOnAssignFolder(java.io.File folder)
-
getTagMoveOnAssignOptions
public long getTagMoveOnAssignOptions()
-
setTagMoveOnAssignOptions
public void setTagMoveOnAssignOptions(long options)
-
getTagMinShareRatio
public int getTagMinShareRatio()
-
setTagMinShareRatio
public void setTagMinShareRatio(int sr)
-
getTagMaxShareRatio
public int getTagMaxShareRatio()
-
setTagMaxShareRatio
public void setTagMaxShareRatio(int sr)
-
getTagMaxShareRatioAction
public int getTagMaxShareRatioAction()
-
setTagMaxShareRatioAction
public void setTagMaxShareRatioAction(int action)
-
getTagAggregateShareRatio
public int getTagAggregateShareRatio()
-
getTagMaxAggregateShareRatio
public int getTagMaxAggregateShareRatio()
-
setTagMaxAggregateShareRatio
public void setTagMaxAggregateShareRatio(int sr)
-
getTagMaxAggregateShareRatioAction
public int getTagMaxAggregateShareRatioAction()
-
setTagMaxAggregateShareRatioAction
public void setTagMaxAggregateShareRatioAction(int action)
-
getTagMaxAggregateShareRatioHasPriority
public boolean getTagMaxAggregateShareRatioHasPriority()
-
setTagMaxAggregateShareRatioHasPriority
public void setTagMaxAggregateShareRatioHasPriority(boolean priority)
-
getFirstPrioritySeeding
public boolean getFirstPrioritySeeding()
-
setFirstPrioritySeeding
public void setFirstPrioritySeeding(boolean priority)
-
getMaximumTaggables
public int getMaximumTaggables()
-
setMaximumTaggables
public void setMaximumTaggables(int max)
-
checkMaximumTaggables
protected void checkMaximumTaggables()
-
getRemovalStrategy
public int getRemovalStrategy()
-
setRemovalStrategy
public void setRemovalStrategy(int id)
-
getOrdering
public int getOrdering()
-
setOrdering
public void setOrdering(int id)
-
getSupportedProperties
public TagFeatureProperties.TagProperty[] getSupportedProperties()
-
getProperty
public TagFeatureProperties.TagProperty getProperty(java.lang.String name)
-
createTagProperty
protected TagFeatureProperties.TagProperty createTagProperty(java.lang.String name, int type)
-
getSupportedActions
public int getSupportedActions()
-
supportsAction
public boolean supportsAction(int action)
-
isAnyActionEnabled
public boolean isAnyActionEnabled()
-
isActionEnabled
public boolean isActionEnabled(int action)
-
setActionEnabled
public void setActionEnabled(int action, boolean enabled)
-
getActionScript
public java.lang.String getActionScript()
-
setActionScript
public void setActionScript(java.lang.String script)
-
getPostMessageChannel
public java.lang.String getPostMessageChannel()
-
setPostMessageChannel
public void setPostMessageChannel(java.lang.String channel)
-
getOptionsTemplateHandler
public TagFeatureExecOnAssign.OptionsTemplateHandler getOptionsTemplateHandler()
-
getPostingNotifications
public int getPostingNotifications()
-
setPostingNotifications
public void setPostingNotifications(int flags)
-
getNotifyMessageChannel
public java.lang.String getNotifyMessageChannel()
-
setNotifyMessageChannel
public void setNotifyMessageChannel(java.lang.String channel)
-
getTagAssigns
public java.util.List<Tag> getTagAssigns()
-
setTagAssigns
public void setTagAssigns(java.util.List<Tag> tags)
-
addTaggable
public void addTaggable(Taggable t)
- Specified by:
addTaggable
in interfaceTag
-
removeTaggable
public void removeTaggable(Taggable t)
- Specified by:
removeTaggable
in interfaceTag
-
sync
protected void sync()
-
closing
protected void closing()
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceTag
-
setDescription
public void setDescription(java.lang.String str)
- Specified by:
setDescription
in interfaceTag
-
setTransientProperty
public void setTransientProperty(java.lang.String property, java.lang.Object value)
- Specified by:
setTransientProperty
in interfaceTag
-
getTransientProperty
public java.lang.Object getTransientProperty(java.lang.String property)
- Specified by:
getTransientProperty
in interfaceTag
-
addTagListener
public void addTagListener(TagListener listener, boolean fire_for_existing)
- Specified by:
addTagListener
in interfaceTag
-
destroy
protected void destroy()
-
removeTagListener
public void removeTagListener(TagListener listener)
- Specified by:
removeTagListener
in interfaceTag
-
getTaggables
public java.util.List<Taggable> getTaggables()
- Specified by:
getTaggables
in interfaceTag
-
requestAttention
public void requestAttention()
- Specified by:
requestAttention
in interfaceTag
-
addListener
public void addListener(TagListener listener)
- Specified by:
addListener
in interfaceTag
-
removeListener
public void removeListener(TagListener listener)
- Specified by:
removeListener
in interfaceTag
-
readBooleanAttribute
protected java.lang.Boolean readBooleanAttribute(java.lang.String attr, java.lang.Boolean def)
-
writeBooleanAttribute
protected boolean writeBooleanAttribute(java.lang.String attr, java.lang.Boolean value)
-
readLongAttribute
protected java.lang.Long readLongAttribute(java.lang.String attr, java.lang.Long def)
-
writeLongAttribute
protected boolean writeLongAttribute(java.lang.String attr, long value)
-
readStringAttribute
protected java.lang.String readStringAttribute(java.lang.String attr, java.lang.String def)
-
writeStringAttribute
protected boolean writeStringAttribute(java.lang.String attr, java.lang.String value)
- Returns:
- Whether attribute was changed from existing value
-
readMapAttribute
protected java.util.Map<java.lang.String,java.lang.Object> readMapAttribute(java.lang.String attr, java.util.Map<java.lang.String,java.lang.Object> def)
-
writeMapAttribute
protected void writeMapAttribute(java.lang.String attr, java.util.Map<java.lang.String,java.lang.Object> value)
-
readStringListAttribute
protected java.lang.String[] readStringListAttribute(java.lang.String attr, java.lang.String[] def)
-
writeStringListAttribute
protected boolean writeStringListAttribute(java.lang.String attr, java.lang.String[] value)
-
readLongListAttribute
protected long[] readLongListAttribute(java.lang.String attr, long[] def)
-
writeLongListAttribute
protected boolean writeLongListAttribute(java.lang.String attr, long[] value)
-
loadTransientStuff
private void loadTransientStuff()
-
saveTransientStuff
private void saveTransientStuff()
-
loadPersistentStuff
private void loadPersistentStuff()
-
savePersistentStuff
private void savePersistentStuff()
-
getTagUploadTotal
public long[] getTagUploadTotal()
-
getTagSessionUploadTotal
public long[] getTagSessionUploadTotal()
-
resetTagSessionUploadTotal
public void resetTagSessionUploadTotal()
-
getTagSessionUploadTotalRaw
private long[] getTagSessionUploadTotalRaw()
-
getTagSessionUploadTotalCurrent
protected long[] getTagSessionUploadTotalCurrent()
-
getTagDownloadTotal
public long[] getTagDownloadTotal()
-
getTagSessionDownloadTotal
public long[] getTagSessionDownloadTotal()
-
resetTagSessionDownloadTotal
public void resetTagSessionDownloadTotal()
-
getTagSessionDownloadTotalRaw
private long[] getTagSessionDownloadTotalRaw()
-
getTagSessionDownloadTotalCurrent
protected long[] getTagSessionDownloadTotalCurrent()
-
setRecentHistoryRetention
public void setRecentHistoryRetention(boolean required)
-
getRecentHistory
public int[][] getRecentHistory()
-
getTaggableAddedTime
public long getTaggableAddedTime(Taggable taggble)
- Specified by:
getTaggableAddedTime
in interfaceTag
-
tick
public void tick(long mono_now, int count)
- Specified by:
tick
in interfaceSimpleTimer.TimerTickReceiver
-
getVuzeFile
public VuzeFile getVuzeFile()
- Specified by:
getVuzeFile
in interfaceTag
-
generate
public void generate(IndentWriter writer)
-
-