org.exoplatform.brandadvocacy.jcr
Class ParticipantDAO

java.lang.Object
  extended by org.exoplatform.brandadvocacy.jcr.DAO
      extended by org.exoplatform.brandadvocacy.jcr.ParticipantDAO

public class ParticipantDAO
extends DAO

Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Sep 9, 2014


Field Summary
static String node_prop_addresses
           
 
Constructor Summary
ParticipantDAO(JCRImpl jcrImpl)
           
 
Method Summary
 Participant addParticipant2Program(Participant participant)
           
 List<Participant> getAllParticipantsInProgram(String programId)
           
 javax.jcr.Node getNodeByQuery(String programId, String username)
           
 javax.jcr.Node getNodeByUserName(String programId, String username)
           
 javax.jcr.Node getOrCreateAddressHome(javax.jcr.Node participantNode)
           
 Participant getParticipantInProgramByUserName(String programId, String username)
           
 Boolean removeMission(String programId, String userName, String missionId)
           
 Boolean removeMissionParticipant(String programId, String userName, String missionParticipantId)
           
 Participant transferNode2Object(javax.jcr.Node node)
           
 
Methods inherited from class org.exoplatform.brandadvocacy.jcr.DAO
getJcrImplService, getNodeById, getNodesByQuery, getOrCreateNodeCommon, getProgramJcrPath, setJcrImplService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node_prop_addresses

public static final String node_prop_addresses
See Also:
Constant Field Values
Constructor Detail

ParticipantDAO

public ParticipantDAO(JCRImpl jcrImpl)
Method Detail

transferNode2Object

public Participant transferNode2Object(javax.jcr.Node node)
                                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getOrCreateAddressHome

public javax.jcr.Node getOrCreateAddressHome(javax.jcr.Node participantNode)

getNodeByUserName

public javax.jcr.Node getNodeByUserName(String programId,
                                        String username)

getNodeByQuery

public javax.jcr.Node getNodeByQuery(String programId,
                                     String username)

addParticipant2Program

public Participant addParticipant2Program(Participant participant)

getAllParticipantsInProgram

public List<Participant> getAllParticipantsInProgram(String programId)

getParticipantInProgramByUserName

public Participant getParticipantInProgramByUserName(String programId,
                                                     String username)

removeMissionParticipant

public Boolean removeMissionParticipant(String programId,
                                        String userName,
                                        String missionParticipantId)

removeMission

public Boolean removeMission(String programId,
                             String userName,
                             String missionId)


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.