public class ActivityUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Node |
createOneRating(Node poll,
java.lang.String userID,
java.lang.Long rate) |
static Node |
createVote(Node poll) |
static Node |
createVote(Node poll,
java.lang.String userID) |
static java.lang.String |
getAvgRating(Node poll) |
static Node |
getMyVote(Node poll) |
static java.lang.String |
getPollName(Node rate)
Simply returns the poll name that is relevant for the given rate
|
static NodeIterator |
getPolls(Node pollable,
boolean onlyOpenPolls) |
static NodeIterator |
getRates(Node pollable) |
static void |
updateAvgRatingCache(Node poll) |
public static java.lang.String getPollName(Node rate)
public static NodeIterator getPolls(Node pollable, boolean onlyOpenPolls)
public static NodeIterator getRates(Node pollable)
public static Node createOneRating(Node poll, java.lang.String userID, java.lang.Long rate)
public static void updateAvgRatingCache(Node poll)
public static java.lang.String getAvgRating(Node poll)
Copyright © 2007–2020. All rights reserved.