Class SeeAlsoDAO
- java.lang.Object
-
- org.silverpeas.core.contribution.publication.dao.SeeAlsoDAO
-
public class SeeAlsoDAO extends Object
Class declaration- Author:
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addLink(Connection con, PublicationPK objectPK, ResourceReference targetPK)
Method declarationstatic void
deleteComponentInstanceData(String componentInstanceId)
Deletes all publication to publication links associated to the component instance represented by the given identifier.static void
deleteLink(String id)
static void
deleteLinksByObjectId(Connection con, PublicationPK objectPK)
static void
deleteLinksByTargetId(Connection con, ResourceReference targetPK)
static List<PublicationLink>
getLinks(Connection con, PublicationPK pubPK)
Method declarationstatic List<PublicationLink>
getReverseLinks(Connection con, PublicationPK pubPK)
gets the publication identifiers which reference given publication
-
-
-
Method Detail
-
deleteComponentInstanceData
public static void deleteComponentInstanceData(String componentInstanceId) throws SQLException
Deletes all publication to publication links associated to the component instance represented by the given identifier.- Parameters:
componentInstanceId
- the identifier of the component instance for which the resources must be deleted.- Throws:
SQLException
-
addLink
public static void addLink(Connection con, PublicationPK objectPK, ResourceReference targetPK) throws SQLException
Method declaration- Parameters:
con
-objectPK
-targetPK
-- Throws:
SQLException
-
deleteLink
public static void deleteLink(String id) throws SQLException
- Throws:
SQLException
-
deleteLinksByObjectId
public static void deleteLinksByObjectId(Connection con, PublicationPK objectPK) throws SQLException
- Throws:
SQLException
-
deleteLinksByTargetId
public static void deleteLinksByTargetId(Connection con, ResourceReference targetPK) throws SQLException
- Throws:
SQLException
-
getLinks
public static List<PublicationLink> getLinks(Connection con, PublicationPK pubPK) throws SQLException
Method declaration- Parameters:
con
-pubPK
-- Returns:
- Throws:
SQLException
-
getReverseLinks
public static List<PublicationLink> getReverseLinks(Connection con, PublicationPK pubPK) throws SQLException
gets the publication identifiers which reference given publication- Parameters:
con
- SQL connectionpubPK
- publication identifier which are searching referencer- Returns:
- a list of publication identifier
- Throws:
SQLException
-
-