|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.publication.control.PublicationDAO
public class PublicationDAO
This is the Publication Data Access Object.
Constructor Summary | |
---|---|
PublicationDAO()
This class must not be instanciated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublicationDAO()
Method Detail |
---|
public static void invalidateLastPublis(String instanceId)
instanceId
- public static int getNbPubInFatherPKs(Connection con, Collection<NodePK> fatherPKs) throws SQLException
con
- fatherPKs
-
SQLException
public static int getNbPubByFatherPath(Connection con, NodePK fatherPK, String fatherPath) throws SQLException
con
- fatherPK
- fatherPath
-
SQLException
public static Map<String,Integer> getDistributionTree(Connection con, String instanceId, String statusSubQuery, boolean checkVisibility) throws SQLException
SQLException
public static void insertRow(Connection con, PublicationDetail detail) throws SQLException
con
- detail
-
SQLException
public static void deleteRow(Connection con, PublicationPK pk) throws SQLException
con
- pk
-
SQLException
public static PublicationPK selectByPrimaryKey(Connection con, PublicationPK primaryKey) throws SQLException
SQLException
public static PublicationPK selectByPublicationName(Connection con, PublicationPK primaryKey, String name) throws SQLException
SQLException
public static PublicationPK selectByPublicationNameAndNodeId(Connection con, PublicationPK primaryKey, String name, int nodeId) throws SQLException
SQLException
public static Collection<PublicationDetail> selectByFatherPK(Connection con, NodePK fatherPK) throws SQLException
con
- fatherPK
-
SQLException
public static Collection<PublicationDetail> selectByFatherPK(Connection con, NodePK fatherPK, boolean filterOnVisibilityPeriod) throws SQLException
SQLException
public static Collection<PublicationDetail> selectByFatherPK(Connection con, NodePK fatherPK, String sorting, boolean filterOnVisibilityPeriod) throws SQLException
SQLException
public static Collection<PublicationDetail> selectByFatherPK(Connection con, NodePK fatherPK, String sorting, boolean filterOnVisibilityPeriod, String userId) throws SQLException
SQLException
public static Collection<PublicationDetail> selectByFatherPK(Connection con, NodePK fatherPK, String sorting) throws SQLException
SQLException
public static Collection<PublicationDetail> selectNotInFatherPK(Connection con, NodePK fatherPK) throws SQLException
con
- fatherPK
-
SQLException
public static Collection<PublicationDetail> selectNotInFatherPK(Connection con, NodePK fatherPK, String sorting) throws SQLException
SQLException
public static ArrayList<PublicationDetail> selectByFatherIds(Connection con, List<String> fatherIds, PublicationPK pubPK, String sorting, List<String> status, boolean filterOnVisibilityPeriod) throws SQLException
SQLException
public static Collection<PublicationDetail> selectByPublicationPKs(Connection con, Collection<PublicationPK> publicationPKs)
public static Collection<PublicationDetail> selectByStatus(Connection con, PublicationPK pubPK, String status) throws SQLException
con
- pubPK
- status
-
SQLException
public static Collection<PublicationDetail> selectByStatus(Connection con, List<String> componentIds, String status) throws SQLException
SQLException
public static Collection<PublicationPK> selectPKsByStatus(Connection con, List<String> componentIds, String status) throws SQLException
SQLException
public static Collection<PublicationPK> selectUpdatedPublicationsSince(Connection con, List<String> componentIds, String status, Date since, int maxSize) throws SQLException
SQLException
public static Collection<PublicationDetail> selectAllPublications(Connection con, PublicationPK pubPK) throws SQLException
con
- pubPK
-
SQLException
public static Collection<PublicationDetail> selectAllPublications(Connection con, PublicationPK pubPK, String sorting) throws SQLException
SQLException
public static Collection<PublicationDetail> selectByBeginDateDescAndStatus(Connection con, PublicationPK pubPK, String status) throws SQLException
con
- pubPK
- status
-
SQLException
public static Collection<PublicationDetail> selectByBeginDateDescAndStatusAndNotLinkedToFatherId(Connection con, PublicationPK pubPK, String status, String fatherId, int fetchSize) throws SQLException
SQLException
public static Collection<PublicationDetail> selectByBeginDateDesc(Connection con, PublicationPK pubPK) throws SQLException
con
- pubPK
-
SQLException
public static Collection<PublicationDetail> getOrphanPublications(Connection con, PublicationPK pubPK) throws SQLException
con
- pubPK
-
SQLException
public static Collection<PublicationDetail> getNotOrphanPublications(Connection con, PublicationPK pubPK) throws SQLException
con
- pubPK
-
SQLException
public static void deleteOrphanPublicationsByCreatorId(Connection con, PublicationPK pubPK, String creatorId) throws SQLException
con
- pubPK
- creatorId
-
SQLException
public static Collection<PublicationDetail> getUnavailablePublicationsByPublisherId(Connection con, PublicationPK pubPK, String publisherId, String nodeId) throws SQLException
con
- pubPK
- publisherId
- nodeId
-
SQLException
public static Collection<PublicationDetail> searchByKeywords(Connection con, String query, PublicationPK pubPK)
con
- query
- pubPK
-
SQLException
public static PublicationDetail loadRow(Connection con, PublicationPK pk) throws SQLException
con
- pk
-
SQLException
public static void changeInstanceId(Connection con, PublicationPK pubPK, String newInstanceId) throws SQLException
SQLException
public static void storeRow(Connection con, PublicationDetail detail) throws SQLException
SQLException
public static PublicationDetail selectByName(Connection con, PublicationPK pubPK, String name) throws SQLException
SQLException
public static PublicationDetail selectByNameAndNodeId(Connection con, PublicationPK pubPK, String name, int nodeId) throws SQLException
SQLException
public static Collection<PublicationDetail> selectBetweenDate(Connection con, String beginDate, String endDate, String instanceId) throws SQLException
SQLException
public static List<SocialInformation> getAllPublicationsIDbyUserid(Connection con, String userId, Date begin, Date end) throws SQLException
con
- userId
- firstIndex
- nbElement
-
SQLException
public static List<SocialInformationPublication> getSocialInformationsListOfMyContacts(Connection con, List<String> myContactsIds, List<String> options, Date begin, Date end) throws SQLException
:
- String myId:List
- myContactsIds:List
- options list of Available Components nameint
- numberOfElement, int firstIndex
SQLException
public static Collection<PublicationDetail> getPublicationsToDraftOut(Connection con, boolean useClone) throws SQLException
SQLException
public static Collection<PublicationDetail> getDraftsByUser(Connection con, String userId) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |