Package io.meeds.social.category.service
Interface CategoryPluginService
public interface CategoryPluginService
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(CategoryPlugin categoryPlugin) booleanbooleangetCategoryIds(String objectType, long spaceId, String username) getCategoryPlugin(String objectType) getEntryItem(String objectType, String objectId, String username) getObject(CategoryObject object) In some cases such as Activities, the Metadata Object is different, thus this method is used to switch the associatedCategoryObject
-
Method Details
-
getCategoryPlugin
- Parameters:
objectType-CategoryObjecttype- Returns:
- associated
CategoryPluginmanaging this type of objects
-
addPlugin
- Parameters:
categoryPlugin- add newCategoryPlugin
-
canEdit
- Parameters:
objectType-CategoryObjecttypeobjectId-CategoryObjectidusername- User technical name (login identifier)- Returns:
- true if user can edit the object identified by its id and type, else false
-
canAccess
- Parameters:
objectType-CategoryObjecttypeobjectId-CategoryObjectidusername- User technical name (login identifier)- Returns:
- true if user can access the object identified by its id and type, else false
-
getEntryItem
- Parameters:
objectType-CategoryObjecttypeobjectId-CategoryObjectidusername- User technical name (login identifier)- Returns:
CategoryEntryItempreview of the object identified by its id and type, or null when this objectType isn't meant to be browsable as an entry
-
getCategoryIds
- Parameters:
objectType-CategoryObjecttypespaceId-Spaceidentifierusername- User technical name (login identifier)- Returns:
ListofCategoryIds associated to an object type
-
getObject
In some cases such as Activities, the Metadata Object is different, thus this method is used to switch the associatedCategoryObject- Parameters:
object-CategoryObject- Returns:
CategoryObject
-