Package io.meeds.poll.utils
Class PollUtils
- java.lang.Object
-
- io.meeds.poll.utils.PollUtils
-
public class PollUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCREATE_POLLstatic StringPOLL_ACTIVITY_TYPEstatic StringPOLL_IDstatic StringVOTE_POLL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbroadcastEvent(String eventName, Object source, Object data)static longgetCurrentUserIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager, String currentUser)static longgetPollDuration(io.meeds.poll.model.Poll poll)static DatetoDate(ZonedDateTime datetime)
-
-
-
Field Detail
-
POLL_ACTIVITY_TYPE
public static final String POLL_ACTIVITY_TYPE
- See Also:
- Constant Field Values
-
POLL_ID
public static final String POLL_ID
- See Also:
- Constant Field Values
-
CREATE_POLL
public static final String CREATE_POLL
- See Also:
- Constant Field Values
-
VOTE_POLL
public static final String VOTE_POLL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrentUserIdentityId
public static final long getCurrentUserIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager, String currentUser)
-
toDate
public static Date toDate(ZonedDateTime datetime)
-
getPollDuration
public static long getPollDuration(io.meeds.poll.model.Poll poll)
-
-