org.gudy.azureus2.core3.category.impl
Class CategoryManagerImpl
java.lang.Object
com.aelitis.azureus.core.tag.impl.TagTypeBase
org.gudy.azureus2.core3.category.impl.CategoryManagerImpl
- All Implemented Interfaces:
- RSSGeneratorPlugin.Provider, TagListener, TagType, TrackerWebPageGenerator
public class CategoryManagerImpl
- extends TagTypeBase
- implements RSSGeneratorPlugin.Provider
Methods inherited from class com.aelitis.azureus.core.tag.impl.TagTypeBase |
addTag, addTagListener, addTagType, addTagTypeListener, closing, createTag, fireChanged, fireChanged, generate, generateConfig, getTag, getTag, getTagManager, getTagsForTaggable, getTagType, getTagTypeFeatures, getTagTypeName, hasTagTypeFeature, isTagTypeAuto, isTagTypePersistent, readBooleanAttribute, readLongAttribute, readStringAttribute, readStringListAttribute, removeTag, removeTaggable, removeTagListener, removeTagType, removeTagTypeListener, resolveTaggable, sync, taggableAdded, taggableRemoved, taggableSync, writeBooleanAttribute, writeLongAttribute, writeStringAttribute, writeStringListAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CategoryManagerImpl
protected CategoryManagerImpl()
addCategoryManagerListener
public void addCategoryManagerListener(CategoryManagerListener l)
removeCategoryManagerListener
public void removeCategoryManagerListener(CategoryManagerListener l)
getInstance
public static CategoryManagerImpl getInstance()
loadCategories
protected void loadCategories()
saveCategories
protected void saveCategories(Category category)
saveCategories
protected void saveCategories()
createCategory
public Category createCategory(String name)
removeCategory
public void removeCategory(Category category)
getCategories
public Category[] getCategories()
getCategory
public CategoryImpl getCategory(String name)
getCategory
public Category getCategory(int type)
getColorDefault
public int[] getColorDefault()
- Specified by:
getColorDefault
in interface TagType
- Overrides:
getColorDefault
in class TagTypeBase
getTags
public List<Tag> getTags()
- Specified by:
getTags
in interface TagType
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface RSSGeneratorPlugin.Provider
generate
public boolean generate(TrackerWebPageRequest request,
TrackerWebPageResponse response)
throws IOException
- Specified by:
generate
in interface TrackerWebPageGenerator
- Returns:
- true if the request was handled
- Throws:
IOException
getAddedTime
protected long getAddedTime(Download download)
escape
protected String escape(String str)