Class ForumUtil
java.lang.Object
ch.tocco.nice2.optional.forum.impl.util.ForumUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isForumAdministrator
(Entity forum, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory) static boolean
isSubscribed
(Entity entity, @Nullable Entity currentPrincipal) static boolean
isTopicAdministrator
(Entity topic, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory)
-
Method Details
-
isSubscribed
public static boolean isSubscribed(Entity entity, @Nullable @Nullable Entity currentPrincipal) throws PersistException - Throws:
PersistException
-
isForumAdministrator
public static boolean isForumAdministrator(Entity forum, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory) throws PersistException - Throws:
PersistException
-
isTopicAdministrator
public static boolean isTopicAdministrator(Entity topic, PrincipalService principalService, QueryBuilderFactory queryBuilderFactory) throws PersistException - Throws:
PersistException
-