org.gudy.azureus2.core3.category.impl
Class CategoryManagerImpl

java.lang.Object
  extended by com.aelitis.azureus.core.tag.impl.TagTypeBase
      extended by org.gudy.azureus2.core3.category.impl.CategoryManagerImpl
All Implemented Interfaces:
RSSGeneratorPlugin.Provider, TagListener, TagType, TrackerWebPageGenerator

public class CategoryManagerImpl
extends TagTypeBase
implements RSSGeneratorPlugin.Provider


Field Summary
 
Fields inherited from class com.aelitis.azureus.core.tag.impl.TagTypeBase
AT_COLOR_ID
 
Fields inherited from interface com.aelitis.azureus.core.tag.TagType
TT_DOWNLOAD_CATEGORY, TT_DOWNLOAD_MANUAL, TT_DOWNLOAD_STATE, TT_PEER_IPSET
 
Constructor Summary
protected CategoryManagerImpl()
           
 
Method Summary
 void addCategoryManagerListener(CategoryManagerListener l)
           
 Category createCategory(java.lang.String name)
           
protected  java.lang.String escape(java.lang.String str)
           
 boolean generate(TrackerWebPageRequest request, TrackerWebPageResponse response)
           
protected  long getAddedTime(Download download)
           
 Category[] getCategories()
           
 Category getCategory(int type)
           
 CategoryImpl getCategory(java.lang.String name)
           
 int[] getColorDefault()
           
static CategoryManagerImpl getInstance()
           
 java.util.List<Tag> getTags()
           
 boolean isEnabled()
           
protected  void loadCategories()
           
 void removeCategory(Category category)
           
 void removeCategoryManagerListener(CategoryManagerListener l)
           
protected  void saveCategories()
           
protected  void saveCategories(Category category)
           
 
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, requestAttention, 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
 

Constructor Detail

CategoryManagerImpl

protected CategoryManagerImpl()
Method Detail

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(java.lang.String name)

removeCategory

public void removeCategory(Category category)

getCategories

public Category[] getCategories()

getCategory

public CategoryImpl getCategory(java.lang.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 java.util.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 java.io.IOException
Specified by:
generate in interface TrackerWebPageGenerator
Returns:
true if the request was handled
Throws:
java.io.IOException

getAddedTime

protected long getAddedTime(Download download)

escape

protected java.lang.String escape(java.lang.String str)