ch.hsr.bieridee.models
Class TimelineModel

java.lang.Object
  extended by ch.hsr.bieridee.models.AbstractModel
      extended by ch.hsr.bieridee.models.TimelineModel

public final class TimelineModel
extends AbstractModel

Timeline helper model.


Constructor Summary
TimelineModel()
           
 
Method Summary
static java.util.List<AbstractActionModel> getAll()
          Gets all actions.
static java.util.List<AbstractActionModel> getAll(int maxNumber)
          Gets a limited number of actions.
static java.util.List<AbstractActionModel> getAll(int maxNumber, int skipCount)
          Gets a limited number of actions.
static java.util.List<AbstractActionModel> getAllForUser(java.lang.String username)
          Gets the actions filtered by a username.
static java.util.List<AbstractActionModel> getAllForUser(java.lang.String username, int maxNumber)
          Gets a limited number of actions filtered by a username.
static java.util.List<AbstractActionModel> getAllForUser(java.lang.String username, int maxNumber, int skipCount)
          Gets a limited number of actions filtered by a username.
 IDomain getDomainObject()
           
 
Methods inherited from class ch.hsr.bieridee.models.AbstractModel
getNode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimelineModel

public TimelineModel()
Method Detail

getAll

public static java.util.List<AbstractActionModel> getAll()
                                                  throws org.neo4j.graphdb.NotFoundException,
                                                         WrongNodeTypeException
Gets all actions.

Returns:
List of AbstractActionModels
Throws:
org.neo4j.graphdb.NotFoundException - Thrown if a node is not existing
WrongNodeTypeException - Thrown if a node is not of the desired type

getAllForUser

public static java.util.List<AbstractActionModel> getAllForUser(java.lang.String username)
                                                         throws org.neo4j.graphdb.NotFoundException,
                                                                WrongNodeTypeException
Gets the actions filtered by a username.

Parameters:
username - username the timeline to be filtered with.
Returns:
List of AbstracActionModels
Throws:
WrongNodeTypeException - Thrown if a node is not existing.
org.neo4j.graphdb.NotFoundException - Thrown if a node is not of the desired type.

getAllForUser

public static java.util.List<AbstractActionModel> getAllForUser(java.lang.String username,
                                                                int maxNumber)
                                                         throws org.neo4j.graphdb.NotFoundException,
                                                                WrongNodeTypeException
Gets a limited number of actions filtered by a username.

Parameters:
username - username the timeline to be filtered with.
maxNumber - Count of actions to retrieve
Returns:
List of AbstracActionModels
Throws:
org.neo4j.graphdb.NotFoundException - Thrown if a node is not of the desired type.
WrongNodeTypeException - Thrown if a node is not existing.

getAllForUser

public static java.util.List<AbstractActionModel> getAllForUser(java.lang.String username,
                                                                int maxNumber,
                                                                int skipCount)
                                                         throws org.neo4j.graphdb.NotFoundException,
                                                                WrongNodeTypeException
Gets a limited number of actions filtered by a username.

Parameters:
username - username the timeline to be filtered with.
maxNumber - Count of actions to retrieve
skipCount - Count of results to skip
Returns:
List of AbstracActionModels
Throws:
org.neo4j.graphdb.NotFoundException - Thrown if a node is not of the desired type.
WrongNodeTypeException - Thrown if a node is not existing.

getAll

public static java.util.List<AbstractActionModel> getAll(int maxNumber)
                                                  throws org.neo4j.graphdb.NotFoundException,
                                                         WrongNodeTypeException
Gets a limited number of actions.

Parameters:
maxNumber - Count of actions to retrieve
Returns:
Limited list of AbstractActionModels
Throws:
org.neo4j.graphdb.NotFoundException - Thrown if a node is not existing
WrongNodeTypeException - Thrown if a node is not of the desired type

getAll

public static java.util.List<AbstractActionModel> getAll(int maxNumber,
                                                         int skipCount)
                                                  throws org.neo4j.graphdb.NotFoundException,
                                                         WrongNodeTypeException
Gets a limited number of actions.

Parameters:
maxNumber - Count of actions to retrieve
skipCount - Count of results to skip
Returns:
Limited list of AbstractActionModels
Throws:
org.neo4j.graphdb.NotFoundException - Thrown if a node is not existing
WrongNodeTypeException - Thrown if a node is not of the desired type

getDomainObject

public IDomain getDomainObject()
Specified by:
getDomainObject in class AbstractModel