|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.tools.distributionlist.dao.DistributionListDaoImpl
public class DistributionListDaoImpl
Constructor Summary | |
---|---|
DistributionListDaoImpl()
|
Method Summary | |
---|---|
void |
eraseAllRelatedDistributionListObjects(java.lang.String triggername)
Implements the query to erase all distribution list objects with the related triggername. |
void |
eraseDistributionList(DistributionList aDistributionList)
Implements the query to erase a distribution list. |
void |
eraseDistributionListObjects(DistributionList dl,
int biobId,
java.lang.String triggername)
Implements the query to erase distribution list objects. |
java.util.List |
getXmlRelated(DistributionList dl,
int objId)
Returns a list of the Xmls related to the specified Distribution List and the specified Document. |
boolean |
hasBIObjAssociated(java.lang.String dlId)
Tells if a distribution list is associated to any BI Object. |
void |
insertDistributionList(DistributionList aDistributionList)
Implements the query to insert a distribution list. |
void |
insertDLforDocument(DistributionList dl,
int objId,
java.lang.String xml)
Inserts the document with id objId in the list of documents for the DIstributionList dl with the xml of its schedulation. |
boolean |
isDocScheduleAlreadyLinkedToDL(DistributionList dl,
int objId,
java.lang.String xml)
Verifies if the document with id objId is already in the list of documents for the DIstributionList dl with the xml of its schedulation. |
boolean |
isDocScheduledInOtherTime(DistributionList dl,
int objId,
java.lang.String xml)
Verifies if the document with id objId is already in the list of documents for the DIstributionList dl with another xml of schedulation. |
java.util.List |
loadAllDistributionLists()
Loads all distribution lists. |
DistributionList |
loadDistributionListById(java.lang.Integer Id)
Loads all detail information for a distribution list identified by its id. |
DistributionList |
loadDistributionListByName(java.lang.String name)
Loads all detail information for a distribution list identified by its name. |
void |
modifyDistributionList(DistributionList aDistributionList)
Implements the query to modify a distributionlist. |
void |
subscribeToDistributionList(DistributionList aDistributionList,
Email user)
Subscribes user to the distribution list. |
DistributionList |
toDistributionList(SbiDistributionList hibDistributionList)
To distribution list. |
void |
unsubscribeFromDistributionList(DistributionList aDistributionList,
java.lang.String user)
Unubscribes user from the distribution list. |
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO |
---|
getSession, logException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistributionListDaoImpl()
Method Detail |
---|
public void eraseDistributionList(DistributionList aDistributionList) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
distributionlist
object.
eraseDistributionList
in interface IDistributionListDAO
aDistributionList
- The object containing all informations to be deleted
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void eraseDistributionListObjects(DistributionList dl, int biobId, java.lang.String triggername) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
eraseDistributionListObjects
in interface IDistributionListDAO
dl
- the dlbiobId
- The id of the documenttriggername
- The triggername regarding the schedulation of the document
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void eraseAllRelatedDistributionListObjects(java.lang.String triggername) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
eraseAllRelatedDistributionListObjects
in interface IDistributionListDAO
triggername
- The triggername regarding the schedulation of the document
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void insertDistributionList(DistributionList aDistributionList) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
distributionlist
object.
insertDistributionList
in interface IDistributionListDAO
aDistributionList
- The object containing all insert information
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List loadAllDistributionLists() throws it.eng.spago.error.EMFUserError
IDistributionListDAO
loadAllDistributionLists
in interface IDistributionListDAO
List
object containing all distribution Lists
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic DistributionList loadDistributionListById(java.lang.Integer Id) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
loadDistributionListById
in interface IDistributionListDAO
Id
- The id for the distributionlist to load
distributionlist
object containing all loaded information
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic DistributionList loadDistributionListByName(java.lang.String name) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
loadDistributionListByName
in interface IDistributionListDAO
name
- The name for the distributionlist to load
distributionlist
object containing all loaded informations
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void modifyDistributionList(DistributionList aDistributionList) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
distributionlist
object.
modifyDistributionList
in interface IDistributionListDAO
aDistributionList
- The object containing all modified informations
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic DistributionList toDistributionList(SbiDistributionList hibDistributionList)
hibDistributionList
- the hib distribution list
public boolean hasBIObjAssociated(java.lang.String dlId) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
hasBIObjAssociated
in interface IDistributionListDAO
dlId
- The distribution list identifier
it.eng.spago.error.EMFUserError
- If any exception occurredpublic void subscribeToDistributionList(DistributionList aDistributionList, Email user) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
subscribeToDistributionList
in interface IDistributionListDAO
aDistributionList
- the a distribution listuser
- The user to be subscribed
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void unsubscribeFromDistributionList(DistributionList aDistributionList, java.lang.String user) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
unsubscribeFromDistributionList
in interface IDistributionListDAO
aDistributionList
- the a distribution listuser
- The user to be unsubscribed
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void insertDLforDocument(DistributionList dl, int objId, java.lang.String xml) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
insertDLforDocument
in interface IDistributionListDAO
dl
- the dlobjId
- The id of the documentxml
- The xml regarding the schedulation of the document
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic boolean isDocScheduleAlreadyLinkedToDL(DistributionList dl, int objId, java.lang.String xml) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
isDocScheduleAlreadyLinkedToDL
in interface IDistributionListDAO
dl
- the dlobjId
- The id of the documentxml
- The xml regarding the schedulation of the document
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic boolean isDocScheduledInOtherTime(DistributionList dl, int objId, java.lang.String xml) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
isDocScheduledInOtherTime
in interface IDistributionListDAO
dl
- the dlobjId
- The id of the documentxml
- The xml regarding the schedulation of the document
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List getXmlRelated(DistributionList dl, int objId) throws it.eng.spago.error.EMFUserError
IDistributionListDAO
getXmlRelated
in interface IDistributionListDAO
dl
- the dlobjId
- The id of the document
it.eng.spago.error.EMFUserError
- If an Exception occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |