com.dotmarketing.portlets.campaigns.factories
Class CampaignFactory

java.lang.Object
  extended by com.dotmarketing.portlets.campaigns.factories.CampaignFactory

public class CampaignFactory
extends java.lang.Object

Author:
will

Constructor Summary
CampaignFactory()
           
 
Method Summary
static void deleteCampaign(Campaign c, java.lang.String userId)
           
static Campaign getCampaign(java.lang.String inode)
           
static Campaign getCampaign(java.lang.String inode, java.lang.String userId)
           
static Campaign getCampaign(java.lang.String inode, java.lang.String userId, java.lang.String orderby)
           
static java.util.List getCampaigns()
           
static java.util.List getCampaigns(java.lang.String condition, java.lang.String orderby)
           
static java.util.List getCampaignsByUser(com.liferay.portal.model.User u)
           
static java.util.List getCampaignsByUser(com.liferay.portal.model.User u, java.lang.String condition, java.lang.String orderby)
           
static java.util.List getCampaignsForViewer(java.lang.String orderby)
           
static java.util.List getChildCampaignsByParent(java.lang.String inode)
           
static java.util.List<Campaign> getWaitingCampaigns()
           
static boolean isCampaignManagerAdmin(com.liferay.portal.model.User user)
           
static Campaign newInstance()
           
static void unlockAllCampaigns()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CampaignFactory

public CampaignFactory()
Method Detail

unlockAllCampaigns

public static void unlockAllCampaigns()
                               throws DotHibernateException
Throws:
DotHibernateException

getCampaignsByUser

public static java.util.List getCampaignsByUser(com.liferay.portal.model.User u)

getCampaignsByUser

public static java.util.List getCampaignsByUser(com.liferay.portal.model.User u,
                                                java.lang.String condition,
                                                java.lang.String orderby)

getCampaigns

public static java.util.List getCampaigns()

getCampaignsForViewer

public static java.util.List getCampaignsForViewer(java.lang.String orderby)

getCampaigns

public static java.util.List getCampaigns(java.lang.String condition,
                                          java.lang.String orderby)

getCampaign

public static Campaign getCampaign(java.lang.String inode,
                                   java.lang.String userId)

getCampaign

public static Campaign getCampaign(java.lang.String inode,
                                   java.lang.String userId,
                                   java.lang.String orderby)

getCampaign

public static Campaign getCampaign(java.lang.String inode)

newInstance

public static Campaign newInstance()

deleteCampaign

public static void deleteCampaign(Campaign c,
                                  java.lang.String userId)
                           throws DotDataException,
                                  DotSecurityException
Throws:
DotDataException
DotSecurityException

getWaitingCampaigns

public static java.util.List<Campaign> getWaitingCampaigns()

isCampaignManagerAdmin

public static boolean isCampaignManagerAdmin(com.liferay.portal.model.User user)
                                      throws com.liferay.portal.PortalException,
                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getChildCampaignsByParent

public static java.util.List getChildCampaignsByParent(java.lang.String inode)


Copyright © 2013 dotCMS Inc. All Rights Reserved.