Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.Subscription


    return subscriptionVOList;
    }

    public SubscriptionVO create(SubscriptionVO subscriptionVO) throws ConstraintException, SystemException
    {
        Subscription subscription = new SubscriptionImpl();
        subscription.setValueObject(subscriptionVO);
        subscription = (Subscription) createEntity(subscription);
        return subscription.getValueObject();
    }
View Full Code Here


    return newSubscriptionVO;
    }

    public Subscription create(SubscriptionVO subscriptionVO,List<SubscriptionFilterVO> subscriptionFilterVOList, Database db) throws ConstraintException, SystemException, Exception
    {
      Subscription subscription = new SubscriptionImpl();
    subscription.setValueObject(subscriptionVO);
        subscription = (Subscription) createEntity(subscription, db);

    Iterator<SubscriptionFilterVO> subscriptionFilterVOListIterator = subscriptionFilterVOList.iterator();
    while(subscriptionFilterVOListIterator.hasNext())
    {
      SubscriptionFilterVO subscriptionFilterVO = subscriptionFilterVOListIterator.next();
        SubscriptionFilterImpl subscriptionFilter = new SubscriptionFilterImpl();
        subscriptionFilter.setValueObject(subscriptionFilterVO);
        subscriptionFilter.setSubscription(subscription);
        subscription.getSubscriptionFilters().add(subscriptionFilter);                 
    }

    return subscription;
    }
View Full Code Here

   
    try
    {
      beginTransaction(db);
     
      Subscription subscription = getSubscriptionWithId(subscriptionVO.getId(), db);
      //db.remove(subscription);
          subscription.setValueObject(subscriptionVO);
      subscription.setSubscriptionFilters(new ArrayList());
     
      Iterator<SubscriptionFilterVO> subscriptionFilterVOListIterator = subscriptionFilterVOList.iterator();
      while(subscriptionFilterVOListIterator.hasNext())
      {
        SubscriptionFilterVO subscriptionFilterVO = subscriptionFilterVOListIterator.next();
          SubscriptionFilterImpl subscriptionFilter = new SubscriptionFilterImpl();
          subscriptionFilter.setValueObject(subscriptionFilterVO);
          subscriptionFilter.setSubscription(subscription);
          logger.info("Adding subscriptionFilter:" + subscriptionFilter);
          subscription.getSubscriptionFilters().add(subscriptionFilter);                 
      }

      subscriptionVO = subscription.getValueObject();
     
          commitTransaction(db);
    }
    catch (Exception e)   
    {
View Full Code Here

   
    try
    {
      beginTransaction(db);
     
        Subscription subscription = getSubscriptionWithId(subscriptionId, db);
        SubscriptionFilterImpl subscriptionFilter = new SubscriptionFilterImpl();
        subscriptionFilter.setValueObject(subscriptionFilterVO);
        subscription.getSubscriptionFilters().add(subscriptionFilter);
       
          commitTransaction(db);
    }
    catch (Exception e)   
    {
View Full Code Here

    else
      results = oql.execute(Database.READONLY);
     
    while (results.hasMore())
        {
            Subscription subscription = (Subscription)results.next();
            subscriptionList.add(subscription);
        }           
   
    results.close();
    oql.close();
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.Subscription

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.