public VcmsTARelation addRelation(String threadId, String articleId) throws PortalException, SystemException, RemoteException { VcmsTARelation relation = null; VcmsTARelationPK primaryKey = new VcmsTARelationPK(threadId, articleId); relation = VcmsTARelationUtil.create(primaryKey); return VcmsTARelationUtil.update(relation, false); }
public void deleteRelationsByThread(String threadId) throws PortalException, SystemException, RemoteException { if (Validator.isNull(threadId)) { return; } VcmsTARelationUtil.removeByThread(threadId); }
public void deleteRelationsByArticle(String articleId) throws PortalException, SystemException, RemoteException { if (Validator.isNull(articleId)) { return; } VcmsTARelationUtil.removeByArticle(articleId); }
public void deleteRelation(String threadId, String articleId) throws PortalException, SystemException, RemoteException { if (Validator.isNull(threadId) || Validator.isNull(articleId)) { return; } VcmsTARelationPK primaryKey = new VcmsTARelationPK(threadId, articleId); VcmsTARelationUtil.remove(primaryKey); }
public List getRelationsByArticle(String articleId) throws PortalException, SystemException, RemoteException { List relations = new ArrayList(); if (Validator.isNull(articleId)) { return relations; } relations = VcmsTARelationUtil.findByArticle(articleId); return relations; }