Commit e9302ee1 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

small changes to accomodate sending of emails

parent 2789bde6
......@@ -13,6 +13,6 @@
##
build.namespace=ANALYSIS
build.number=76
build.date=1515677473549
build.number=78
build.date=1516194244914
build.auto.upgrade=true
\ No newline at end of file
......@@ -13,6 +13,6 @@
##
build.namespace=GB
build.number=97
build.date=1515677478102
build.number=99
build.date=1516194249453
build.auto.upgrade=true
\ No newline at end of file
......@@ -104,6 +104,9 @@ public interface ReviewLocalService extends BaseLocalService,
*/
public Review createReview(long reviewId);
public Review createReviewWithAutomatedDbId(boolean accepted,
java.lang.String feedback, long ideasIdRef, long userId);
/**
* Deletes the review from the database. Also notifies the appropriate model listeners.
*
......@@ -262,9 +265,6 @@ public interface ReviewLocalService extends BaseLocalService,
long companyId, int start, int end,
OrderByComparator<Review> orderByComparator);
public long createReviewWithAutomatedDbId(boolean accepted,
java.lang.String feedback, long ideasIdRef, long userId);
/**
* Returns the number of rows matching the dynamic query.
*
......
......@@ -94,6 +94,14 @@ public class ReviewLocalServiceUtil {
return getService().createReview(reviewId);
}
public static ideaService.model.Review createReviewWithAutomatedDbId(
boolean accepted, java.lang.String feedback, long ideasIdRef,
long userId) {
return getService()
.createReviewWithAutomatedDbId(accepted, feedback,
ideasIdRef, userId);
}
/**
* Deletes the review from the database. Also notifies the appropriate model listeners.
*
......@@ -284,13 +292,6 @@ public class ReviewLocalServiceUtil {
orderByComparator);
}
public static long createReviewWithAutomatedDbId(boolean accepted,
java.lang.String feedback, long ideasIdRef, long userId) {
return getService()
.createReviewWithAutomatedDbId(accepted, feedback,
ideasIdRef, userId);
}
/**
* Returns the number of rows matching the dynamic query.
*
......
......@@ -92,6 +92,14 @@ public class ReviewLocalServiceWrapper implements ReviewLocalService,
return _reviewLocalService.createReview(reviewId);
}
@Override
public ideaService.model.Review createReviewWithAutomatedDbId(
boolean accepted, java.lang.String feedback, long ideasIdRef,
long userId) {
return _reviewLocalService.createReviewWithAutomatedDbId(accepted,
feedback, ideasIdRef, userId);
}
/**
* Deletes the review from the database. Also notifies the appropriate model listeners.
*
......@@ -296,13 +304,6 @@ public class ReviewLocalServiceWrapper implements ReviewLocalService,
companyId, start, end, orderByComparator);
}
@Override
public long createReviewWithAutomatedDbId(boolean accepted,
java.lang.String feedback, long ideasIdRef, long userId) {
return _reviewLocalService.createReviewWithAutomatedDbId(accepted,
feedback, ideasIdRef, userId);
}
/**
* Returns the number of rows matching the dynamic query.
*
......
......@@ -94,7 +94,9 @@
<field name="createDate" type="Date" />
<field name="modifiedDate" type="Date" />
<field name="accepted" type="boolean" />
<field name="feedback" type="String" />
<field name="feedback" type="String">
<hint name="max-length">4000</hint>
</field>
<field name="ideasIdRef" type="long" />
</model>
</model-hints>
\ No newline at end of file
......@@ -101,7 +101,7 @@ public class ReviewModelImpl extends BaseModelImpl<Review>
TABLE_COLUMNS_MAP.put("ideasIdRef", Types.BIGINT);
}
public static final String TABLE_SQL_CREATE = "create table IDEA_Review (uuid_ VARCHAR(75) null,reviewId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,accepted BOOLEAN,feedback VARCHAR(75) null,ideasIdRef LONG)";
public static final String TABLE_SQL_CREATE = "create table IDEA_Review (uuid_ VARCHAR(75) null,reviewId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,accepted BOOLEAN,feedback STRING null,ideasIdRef LONG)";
public static final String TABLE_SQL_DROP = "drop table IDEA_Review";
public static final String ORDER_BY_JPQL = " ORDER BY review.reviewId ASC";
public static final String ORDER_BY_SQL = " ORDER BY IDEA_Review.reviewId ASC";
......
......@@ -44,7 +44,7 @@ public class ReviewLocalServiceImpl extends ReviewLocalServiceBaseImpl {
* Never reference this class directly. Always use {@link ideaService.service.ReviewLocalServiceUtil} to access the review local service.
*/
public long createReviewWithAutomatedDbId(boolean accepted, String feedback, long ideasIdRef, long userId){
public Review createReviewWithAutomatedDbId(boolean accepted, String feedback, long ideasIdRef, long userId){
int nextDbId = (int)CounterLocalServiceUtil.increment(Review.class.getName());
Review review = ReviewLocalServiceUtil.createReview(nextDbId);
review.setAccepted(accepted);
......@@ -57,7 +57,7 @@ public class ReviewLocalServiceImpl extends ReviewLocalServiceBaseImpl {
} catch (PortalException e) {
e.printStackTrace();
}
return review.getPrimaryKey();
return review;
}
public void persistReviewAndPerformTypeChecks(Review review){
......
......@@ -94,7 +94,9 @@
<field name="createDate" type="Date" />
<field name="modifiedDate" type="Date" />
<field name="accepted" type="boolean" />
<field name="feedback" type="String" />
<field name="feedback" type="String">
<hint name="max-length">4000</hint>
</field>
<field name="ideasIdRef" type="long" />
</model>
</model-hints>
\ No newline at end of file
......@@ -72,6 +72,6 @@ create table IDEA_Review (
createDate DATE null,
modifiedDate DATE null,
accepted BOOLEAN,
feedback VARCHAR(75) null,
feedback STRING null,
ideasIdRef LONG
);
\ No newline at end of file
......@@ -13,6 +13,6 @@
##
build.namespace=IDEA
build.number=230
build.date=1515677482780
build.number=232
build.date=1516194254360
build.auto.upgrade=true
\ No newline at end of file
......@@ -13,6 +13,6 @@
##
build.namespace=PROJECT
build.number=142
build.date=1515677485456
build.number=144
build.date=1516194257074
build.auto.upgrade=true
\ No newline at end of file
......@@ -13,6 +13,6 @@
##
build.namespace=SURVEY
build.number=241
build.date=1515677490480
build.number=243
build.date=1516194262123
build.auto.upgrade=true
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment