de.tuberlin.cs.flp.jspwiki
CategoriesMemberPhrases
(or as configured via jspwiki.categories.memberPhrases.page
)de.tuberlin.cs.flp.jspwiki.plugin.Category
(and usually nothing more, i.e. the category-page does not contain links to its members in wiki markup, but links are displayed by the plugin)Categories
page (or as configured via jspwiki.categories.page
)
|
|||
public static
String
|
CATEGORY_EDITINFO_SUFFIX |
||
public static
String
|
CATEGORY_INFO_SUFFIX |
||
public static
String
|
CATEGORY_INITIAL_SUFFIX Image file suffices to identify an image by its filename.
(Simple hard-coded solution. Should be configurable or taken from the Wiki's general configuration.)
|
||
public static
String
|
DEFAULT_CATEGORY_MEMBER_PHRASES_PAGE |
||
public static
String
|
DEFAULT_CATEGORY_PAGE Default name of the central Categories page.
|
||
public static
long
|
NEW_MEMBER_TIMEOUT_SECONDS |
||
public static
String
|
PROPERTY_CATEGORY_MEMBER_PHRASES_PAGE |
||
public static
String
|
PROPERTY_CATEGORY_PAGE Property holding the name of the central Categories page on which all
CategoryXxx pages are registered to become known as categories.
|
||
protected
Map
|
existingCategoryMembersCacheByCategory Represents ... |
||
protected static
java.util.Map
|
instancesByEngine Represents ... |
||
protected
Map
|
membersToBeCreatedByCategory |
||
protected
Map
|
membersToBeCreatedTimestamp |
|
|||
protected
|
CategoryManager(WikiEngine engine)
|
|
|||
public
void
|
actionPerformed(WikiEvent e)
Implementation of WikiEventListener.
This watches out for any change of a page and then invalidates the cached list of category members
(as it might have changed through the page change). Using the cache is a simple optimization.
|
||
public
void
|
addCategoryMember(String category, String newPage)
|
||
public
Collection
|
getAllCategories()
Returns all categories used in the wiki. Typically, this is a Collection
of Strings like CategoryXxx, CategoryYyy, CategoryZzz etc.
|
||
public
Collection
|
getCategories(String page)
Returns all categories in which the page is a member.
|
||
public
Collection
|
getCategoryMemberPhrases()
|
||
public
String
|
getCategoryMemberPhrasesPageName()
|
||
public
java.util.Collection
|
getCategoryMembers(String category)
Convert category page name into the format as it is regarded as valid reference to mark a page as being member of the category.
|
||
public
String
|
getCategoryPageName()
Returns the name of the central Categories page on which all categories
are registered as links to the individual CategoryXxx pages.
(Note that the concept of categories is not applied recursively to declare
categories on the Categories page. Thus, a CategoryXxx page needs not
to link back to the main Categories page. Instead, there are links _from_
the Categories page _to_ the individual CategoryXxx pages.)
|
||
public
String
|
getDefaultCategoryMemberPhrase()
|
||
public
java.util.Collection
|
getExistingCategoryMembers(String category)
|
||
protected
java.util.Collection
|
getExistingCategoryMembersUncached(String category)
Does ... |
||
public static
CategoryManager
|
getInstance(WikiEngine engine)
Static method to get a CategoryManager.
(As this is an extension to the original JSPWiki, we cannot query the
CategoryManager from the engine.)
|
||
public
java.util.Collection
|
getNewCategoryMembers(String category)
|
||
public
boolean
|
isCategory(String page)
|
||
protected
java.util.Collection
|
membersToBeCreated(String category)
Does ... |
|
|||
|
|||
|
|||
Tagged Values | |
static
|
false
|
documentation#author
|
Jens Gulden
|
documentation#see
|
de.tuberlin.cs.flp.jspwiki.tags.CategoryIterator
|
|
public static final
String CATEGORY_EDITINFO_SUFFIX
public static final
String CATEGORY_INFO_SUFFIX
public static final
String CATEGORY_INITIAL_SUFFIX
public static final
String DEFAULT_CATEGORY_MEMBER_PHRASES_PAGE
public static final
String DEFAULT_CATEGORY_PAGE
public static final
long NEW_MEMBER_TIMEOUT_SECONDS
public static final
String PROPERTY_CATEGORY_MEMBER_PHRASES_PAGE
public static final
String PROPERTY_CATEGORY_PAGE
protected
Map existingCategoryMembersCacheByCategory
Represents ...
protected static
java.util.Map instancesByEngine
Represents ...
protected
Map membersToBeCreatedByCategory
protected
Map membersToBeCreatedTimestamp
|
protected
de.tuberlin.cs.flp.jspwiki.CategoryManager
CategoryManager(WikiEngine engine)
engine
-
|
public
void actionPerformed(WikiEvent e)
e
-
public
void addCategoryMember(String category, String newPage)
category
-
newPage
-
public
Collection
getAllCategories()
public
Collection
getCategories(String page)
page
-
public
Collection
getCategoryMemberPhrases()
public
String
getCategoryMemberPhrasesPageName()
public
java.util.Collection
getCategoryMembers(String category)
category
-
public
String
getCategoryPageName()
public
String
getDefaultCategoryMemberPhrase()
public
java.util.Collection
getExistingCategoryMembers(String category)
category
-
protected
java.util.Collection
getExistingCategoryMembersUncached(String category)
Does ...
category
-
public static
CategoryManager
getInstance(WikiEngine engine)
engine
-
public
java.util.Collection
getNewCategoryMembers(String category)
category
-
public
boolean isCategory(String page)
page
-
protected
java.util.Collection
membersToBeCreated(String category)
Does ...
category
-
|
public
CategoryManager CategoryManager
[1..1]
protected
WikiEngine engine
[1..1] navigable
Association Tagged Values | |
gentleware-initialValue
|
|