Package io.meeds.notes.plugin
Class NoteCategoryPlugin
java.lang.Object
io.meeds.notes.plugin.NoteCategoryPlugin
- All Implemented Interfaces:
io.meeds.social.category.plugin.CategoryPlugin
@Component
public class NoteCategoryPlugin
extends Object
implements io.meeds.social.category.plugin.CategoryPlugin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetCategoryIds(Page note) io.meeds.social.category.model.CategoryEntryItemgetEntryItem(String objectId, String username) static longgetSpaceId(Page note) getType()voidinit()static io.meeds.social.category.model.CategoryObjecttoCategoryObject(Page note) Resolves the category link object for a note.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.social.category.plugin.CategoryPlugin
getCategoryIds, getCategoryIds, getCategoryIds, getObject
-
Field Details
-
OBJECT_TYPE
- See Also:
-
ACTIVITY_OBJECT_TYPE
- See Also:
-
-
Constructor Details
-
NoteCategoryPlugin
public NoteCategoryPlugin()
-
-
Method Details
-
init
@PostConstruct public void init() -
getType
- Specified by:
getTypein interfaceio.meeds.social.category.plugin.CategoryPlugin
-
canAccess
- Specified by:
canAccessin interfaceio.meeds.social.category.plugin.CategoryPlugin
-
canEdit
- Specified by:
canEditin interfaceio.meeds.social.category.plugin.CategoryPlugin
-
getSpaceId
-
toCategoryObject
Resolves the category link object for a note. When the note is posted to a feed (has an underlying Activity), categories are linked on the Activity itself so that they stay consistent with the existing publication flow. Otherwise, categories are linked directly on the note. -
getCategoryIds
-
getEntryItem
public io.meeds.social.category.model.CategoryEntryItem getEntryItem(String objectId, String username) - Specified by:
getEntryItemin interfaceio.meeds.social.category.plugin.CategoryPlugin
-