org.exoplatform.brandadvocacy.jcr
Class ProgramDAO

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

public class ProgramDAO
extends DAO

Created by exoplatform on 17/10/14.


Field Summary
static String node_prop_active
           
static String node_prop_labelID
           
static String node_prop_managers
           
static String node_prop_missionparticipants
           
static String node_prop_missions
           
static String node_prop_participants
           
static String node_prop_settings
           
static String node_prop_settings_programId
           
static String node_prop_title
           
static String node_settings
           
 
Constructor Summary
ProgramDAO(JCRImpl jcrImpl)
           
 
Method Summary
 Program addProgram(Program program)
           
 List<Program> getAllPrograms()
           
 javax.jcr.Node getOrCreateManagerHome(javax.jcr.Node node)
           
 javax.jcr.Node getOrCreateMissionHome(javax.jcr.Node node)
           
 javax.jcr.Node getOrCreateMissionParticipantHome(javax.jcr.Node node)
           
 javax.jcr.Node getOrCreateParticipantHome(javax.jcr.Node node)
           
 javax.jcr.Node getOrSettingsHome()
           
 Program getProgramById(String id)
           
 org.json.JSONObject getSettings(String programId)
           
 org.json.JSONObject saveSettings(Program program)
           
 Program updateProgram(Program program)
           
 
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_labelID

public static final String node_prop_labelID
See Also:
Constant Field Values

node_prop_title

public static final String node_prop_title
See Also:
Constant Field Values

node_prop_active

public static final String node_prop_active
See Also:
Constant Field Values

node_prop_managers

public static final String node_prop_managers
See Also:
Constant Field Values

node_prop_missions

public static final String node_prop_missions
See Also:
Constant Field Values

node_prop_participants

public static final String node_prop_participants
See Also:
Constant Field Values

node_prop_missionparticipants

public static final String node_prop_missionparticipants
See Also:
Constant Field Values

node_prop_settings

public static final String node_prop_settings
See Also:
Constant Field Values

node_prop_settings_programId

public static final String node_prop_settings_programId
See Also:
Constant Field Values

node_settings

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

ProgramDAO

public ProgramDAO(JCRImpl jcrImpl)
Method Detail

getOrSettingsHome

public javax.jcr.Node getOrSettingsHome()
                                 throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getOrCreateManagerHome

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

getOrCreateMissionHome

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

getOrCreateParticipantHome

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

getOrCreateMissionParticipantHome

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

addProgram

public Program addProgram(Program program)

updateProgram

public Program updateProgram(Program program)

getProgramById

public Program getProgramById(String id)

getAllPrograms

public List<Program> getAllPrograms()

saveSettings

public org.json.JSONObject saveSettings(Program program)

getSettings

public org.json.JSONObject getSettings(String programId)


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