|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.bl.AdminBaseMgr
com.konakartadmin.bl.AdminReviewMgr
public class AdminReviewMgr
The AdminReviewMgr - for Managing Review Objects for the Admin Application
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
AdminBaseMgr.StaticData |
Field Summary |
---|
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr |
---|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir |
Constructor Summary | |
---|---|
AdminReviewMgr(KKAdminIf eng)
Constructor |
Method Summary | |
---|---|
void |
deleteReview(int reviewId)
Delete the review referenced to by reviewId. |
void |
deleteReviewsPerProduct(int productId,
java.sql.Connection connection)
Delete the reviews for the product identified by productId. |
void |
editReview(AdminReview review)
Edit a review |
AdminReviews |
getAllReviews(AdminDataDescriptor dataDesc)
Calls the getReviewsPerProduct method with a negative productId value so that it is not included in the Where clause of the query |
protected int |
getCount(com.konakart.bl.KKCriteria c)
This method is mainly used for paging. |
AdminReview |
getReview(int reviewId)
Returns a review for the given reviewId |
AdminReviews |
getReviews(AdminDataDescriptor dataDesc,
AdminReviewSearch revSearch)
Returns an array of reviews for the given search criteria. |
AdminReviews |
getReviewsPerProduct(AdminDataDescriptor dataDesc,
int productId)
Returns an array of reviews for the given productId |
int |
insertReview(AdminReview review)
A new review is inserted |
protected void |
manageDataDescriptor(AdminDataDescriptor dataDesc,
com.konakart.bl.KKCriteria c)
Provides common code to deal with the management of the DataDescriptor |
protected void |
setCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c)
Initialize criteria with review attributes |
protected void |
validateReview(AdminReview review)
Validate the review |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminReviewMgr(KKAdminIf eng) throws java.lang.Exception
eng
-
java.lang.Exception
Method Detail |
---|
public AdminReviews getAllReviews(AdminDataDescriptor dataDesc) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getAllReviews
in interface AdminReviewMgrIf
dataDesc
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public AdminReviews getReviewsPerProduct(AdminDataDescriptor dataDesc, int productId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getReviewsPerProduct
in interface AdminReviewMgrIf
dataDesc
- productId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public AdminReviews getReviews(AdminDataDescriptor dataDesc, AdminReviewSearch revSearch) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getReviews
in interface AdminReviewMgrIf
dataDesc
- revSearch
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public AdminReview getReview(int reviewId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
getReview
in interface AdminReviewMgrIf
reviewId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
public void deleteReview(int reviewId) throws java.lang.Exception
deleteReview
in interface AdminReviewMgrIf
reviewId
-
java.lang.Exception
public void deleteReviewsPerProduct(int productId, java.sql.Connection connection) throws java.lang.Exception
deleteReviewsPerProduct
in interface AdminReviewMgrIf
productId
- connection
-
java.lang.Exception
public void editReview(AdminReview review) throws java.lang.Exception
editReview
in interface AdminReviewMgrIf
review
-
java.lang.Exception
public int insertReview(AdminReview review) throws java.lang.Exception
insertReview
in interface AdminReviewMgrIf
review
-
java.lang.Exception
protected void manageDataDescriptor(AdminDataDescriptor dataDesc, com.konakart.bl.KKCriteria c)
dataDesc
- c
- protected void validateReview(AdminReview review) throws java.lang.Exception
java.lang.Exception
protected int getCount(com.konakart.bl.KKCriteria c) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
c
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
protected void setCriteriaWithStandardAttributes(com.konakart.bl.KKCriteria c) throws KKAdminException
c
-
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |