Package com.gracevallorani.config

Examples of com.gracevallorani.config.J2eeConfig


      tp.setStamp(new Date());
      tp.setUrl(url);
      tp.setUserAgent(properties.getProperty("user-agent"));
      tp.setxWapProfile(properties.getProperty("x-wap-profile"));
     
      IJpaFactory<TrackPage> strategy = new TrackPageFactory(new J2eeConfig());
      strategy.setTransactional(true);
     
      strategy.add(tp);
    } catch (Exception e) {
      log_error("error tracking page: " + e.getMessage(), e);
View Full Code Here


public final class VoiceOverSectionController {
  static public final String DATA_KEY = "data";
 
  @RequestMapping(value = "voiceover/index", method = RequestMethod.GET)
  public String showIndex(Model model) {
    VoiceOverSectionFactory strategy = new VoiceOverSectionFactory(new J2eeConfig());
   
    List<VoiceOverSection> sections = strategy.getAll();
   
    for (VoiceOverSection section: sections) {
      Collections.sort(section.getVoiceovers(), new VoiceOverOrderComparator());
View Full Code Here

    form.setId(id);
   
    if (id != 0) {
      VoiceOver vo;
     
      IJpaFactory<VoiceOver> factory = new VoiceOverFactory(new J2eeConfig());
     
      try {
        vo = factory.get(id);           
      } finally {
        factory.close();
View Full Code Here

    }
       
    String filePath = SpringMvcUtils.getPath(FILE_MP3_PREFIX, form.getMp3());
   
    VoiceOver vo;   
    IJpaFactory<VoiceOver> strategy = new VoiceOverFactory(new J2eeConfig());
   
    try {
      if (form.getId() == 0) {
        vo = new VoiceOver();
       
        IJpaFactory<VoiceOverSection> factory2 = new VoiceOverSectionFactory(new J2eeConfig());
       
        try {
          VoiceOverSection vos = factory2.get(form.getSectionid());
          vo.setVoiceOverSection(vos);         
        } finally {
View Full Code Here

    return JSP_DISPLAY;   
 

  @RequestMapping(value = "delete", method = RequestMethod.GET)
  public String getDelete(@RequestParam(value = "id", required = true) int id) throws Exception {   
    IJpaFactory<VoiceOver> strategy = new VoiceOverFactory(new J2eeConfig());
       
    try {
      VoiceOver vo = strategy.get(id);
      strategy.setTransactional(true);
      strategy.delete(vo);
View Full Code Here

    form.setId(id);
   
    if (id != 0) {
      VoiceOverSection vos;
     
      IJpaFactory<VoiceOverSection> factory = new VoiceOverSectionFactory(new J2eeConfig());
     
      try {
        vos = factory.get(id);           
      } finally {
        factory.close();
View Full Code Here

    if (result.hasErrors()) {
      return JSP_EDIT_SECTION;
    }
   
    VoiceOverSection vos;
    IJpaFactory<VoiceOverSection> strategy = new VoiceOverSectionFactory(new J2eeConfig());
    strategy.setTransactional(true);
   
    try {
      if (form.getId() == 0) {
        vos = new VoiceOverSection();
View Full Code Here

@RequestMapping(value = "/admin/temp")
public class BackupAdminController {
  @RequestMapping(value = "shorts", method = RequestMethod.GET)
  public String getShorts(final HttpServletRequest request, Model model)  {
    try {
      IConfig config = new J2eeConfig();
      TreeMap<String, Showreel[]> categories = ArrayListHelper.getCategories(request);
      EntityManager entity = config.getEntityManagerFactory().createEntityManager();
     
      EntityTransaction trans = entity.getTransaction();
      trans.begin();
      try {
        int shortSectionOrder = 0;
View Full Code Here

  }
 
  @RequestMapping(value = "photos", method = RequestMethod.GET)
  public String getPhoto(final HttpServletRequest request, Model model)  {
    try {
      IConfig config = new J2eeConfig();
      ArrayList<Storage> storages = StorageHelper.getStorageDefintion("photos");
     
      EntityManager entity = config.getEntityManagerFactory().createEntityManager();
     
      EntityTransaction trans = entity.getTransaction();
      trans.begin();
      try {
        int photoOrder = 0;
View Full Code Here

    form.setId(id);
   
    if (id != 0) {
      News news;
     
      IJpaFactory<News> strategy = new NewsFactory(new J2eeConfig());
     
      try {
        news = strategy.get(id);           
      } finally {
        strategy.close();
View Full Code Here

TOP

Related Classes of com.gracevallorani.config.J2eeConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.