com.ebmwebsourcing.petalsview.service.flow
Class FlowManagerImpl

java.lang.Object
  extended by com.ebmwebsourcing.petalsview.service.flow.FlowManagerImpl
All Implemented Interfaces:
FlowManager

@Service(value="flowManager")
public class FlowManagerImpl
extends java.lang.Object
implements FlowManager


Constructor Summary
FlowManagerImpl()
           
 
Method Summary
 int[] getAllFlowReferentialType()
           
 com.ebmwebsourcing.petalsview.persistence.model.flow.Flow load(java.lang.String id)
           
 java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAll()
           
 java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAllStarted()
           
 java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAllStartedByType(int type)
           
 java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAllStartedByTypeWithDateFilter(int type, java.util.Date startDate, java.util.Date endDate)
           
 java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAllStartedWithDateFilter(java.util.Date startDate, java.util.Date endDate)
           
 java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadByType(int type)
           
 java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadUnknowsFlows()
           
 void remove(java.lang.String id)
           
 boolean removeByBlock(long d, int type, int limit, java.lang.String url, java.lang.String fileName, boolean save)
           
 void removeOldFlow(int type)
           
 java.lang.String saveOrUpdate(com.ebmwebsourcing.petalsview.persistence.model.flow.Flow flow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowManagerImpl

public FlowManagerImpl()
Method Detail

load

public com.ebmwebsourcing.petalsview.persistence.model.flow.Flow load(java.lang.String id)
                                                               throws FlowException
Specified by:
load in interface FlowManager
Throws:
FlowException

getAllFlowReferentialType

public int[] getAllFlowReferentialType()
Specified by:
getAllFlowReferentialType in interface FlowManager

saveOrUpdate

public java.lang.String saveOrUpdate(com.ebmwebsourcing.petalsview.persistence.model.flow.Flow flow)
                              throws FlowException
Specified by:
saveOrUpdate in interface FlowManager
Throws:
FlowException

loadAll

public java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAll()
Specified by:
loadAll in interface FlowManager

loadAllStarted

public java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAllStarted()
Specified by:
loadAllStarted in interface FlowManager

loadUnknowsFlows

public java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadUnknowsFlows()
Specified by:
loadUnknowsFlows in interface FlowManager

loadByType

public java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadByType(int type)
Specified by:
loadByType in interface FlowManager

loadAllStartedByType

public java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAllStartedByType(int type)
Specified by:
loadAllStartedByType in interface FlowManager

loadAllStartedByTypeWithDateFilter

public java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAllStartedByTypeWithDateFilter(int type,
                                                                                                                    java.util.Date startDate,
                                                                                                                    java.util.Date endDate)
Specified by:
loadAllStartedByTypeWithDateFilter in interface FlowManager

loadAllStartedWithDateFilter

public java.util.List<com.ebmwebsourcing.petalsview.persistence.model.flow.Flow> loadAllStartedWithDateFilter(java.util.Date startDate,
                                                                                                              java.util.Date endDate)
Specified by:
loadAllStartedWithDateFilter in interface FlowManager

remove

public void remove(java.lang.String id)
            throws FlowException
Specified by:
remove in interface FlowManager
Throws:
FlowException

removeOldFlow

public void removeOldFlow(int type)
                   throws FlowException,
                          java.lang.Exception
Specified by:
removeOldFlow in interface FlowManager
Throws:
FlowException
java.lang.Exception

removeByBlock

public boolean removeByBlock(long d,
                             int type,
                             int limit,
                             java.lang.String url,
                             java.lang.String fileName,
                             boolean save)
                      throws java.lang.Exception
Specified by:
removeByBlock in interface FlowManager
Throws:
java.lang.Exception


Copyright © 2010 eBMWebsourcing. All Rights Reserved.