Commit 090f34b7 authored by Elias Englmeier's avatar Elias Englmeier
Browse files

large backend changes to accomodate new workflows

parent e4a245f3
......@@ -7,5 +7,6 @@ Export-Package:\
analysisService.service,\
analysisService.service.persistence,\
analysisSerivce.data.machinelearning,\
analysisSerivce.data.mining,\
org.tensorflow.*
-includeresource: META-INF/service.xml=../analysisService-service/service.xml
\ No newline at end of file
......@@ -13,6 +13,6 @@
##
build.namespace=ANALYSIS
build.number=43
build.date=1513258190759
build.number=62
build.date=1513605323758
build.auto.upgrade=true
\ No newline at end of file
......@@ -13,6 +13,6 @@
##
build.namespace=GB
build.number=64
build.date=1513258195295
build.number=83
build.date=1513605328026
build.auto.upgrade=true
\ No newline at end of file
Bundle-Name: ideaService-api
Bundle-SymbolicName: ideaService.api
Bundle-Version: 1.0.0
Export-Package:\
Export-Package: \
ideaService.exception,\
ideaService.model,\
ideaService.service,\
ideaService.service.persistence
ideaService.service.persistence,\
ideasService.service.enums
-includeresource: META-INF/service.xml=../ideaService-service/service.xml
\ No newline at end of file
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package ideaService.exception;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.exception.NoSuchModelException;
/**
* @author Brian Wing Shun Chan
*/
@ProviderType
public class NoSuchReviewException extends NoSuchModelException {
public NoSuchReviewException() {
}
public NoSuchReviewException(String msg) {
super(msg);
}
public NoSuchReviewException(String msg, Throwable cause) {
super(msg, cause);
}
public NoSuchReviewException(Throwable cause) {
super(cause);
}
}
\ No newline at end of file
......@@ -256,6 +256,21 @@ public interface IdeasModel extends BaseModel<Ideas>, GroupedModel, ShardedModel
*/
public void setShortdescription(String shortdescription);
/**
* Returns the review status of this ideas.
*
* @return the review status of this ideas
*/
@AutoEscape
public String getReviewStatus();
/**
* Sets the review status of this ideas.
*
* @param reviewStatus the review status of this ideas
*/
public void setReviewStatus(String reviewStatus);
/**
* Returns the goal of this ideas.
*
......
......@@ -45,6 +45,7 @@ public class IdeasSoap implements Serializable {
soapModel.setTitle(model.getTitle());
soapModel.setDescription(model.getDescription());
soapModel.setShortdescription(model.getShortdescription());
soapModel.setReviewStatus(model.getReviewStatus());
soapModel.setGoal(model.getGoal());
soapModel.setTags(model.getTags());
soapModel.setImportance(model.getImportance());
......@@ -207,6 +208,14 @@ public class IdeasSoap implements Serializable {
_shortdescription = shortdescription;
}
public String getReviewStatus() {
return _reviewStatus;
}
public void setReviewStatus(String reviewStatus) {
_reviewStatus = reviewStatus;
}
public String getGoal() {
return _goal;
}
......@@ -402,6 +411,7 @@ public class IdeasSoap implements Serializable {
private String _title;
private String _description;
private String _shortdescription;
private String _reviewStatus;
private String _goal;
private String _tags;
private String _importance;
......
......@@ -70,6 +70,7 @@ public class IdeasWrapper implements Ideas, ModelWrapper<Ideas> {
attributes.put("title", getTitle());
attributes.put("description", getDescription());
attributes.put("shortdescription", getShortdescription());
attributes.put("reviewStatus", getReviewStatus());
attributes.put("goal", getGoal());
attributes.put("tags", getTags());
attributes.put("importance", getImportance());
......@@ -164,6 +165,12 @@ public class IdeasWrapper implements Ideas, ModelWrapper<Ideas> {
setShortdescription(shortdescription);
}
String reviewStatus = (String)attributes.get("reviewStatus");
if (reviewStatus != null) {
setReviewStatus(reviewStatus);
}
String goal = (String)attributes.get("goal");
if (goal != null) {
......@@ -552,6 +559,16 @@ public class IdeasWrapper implements Ideas, ModelWrapper<Ideas> {
return _ideas.getRating();
}
/**
* Returns the review status of this ideas.
*
* @return the review status of this ideas
*/
@Override
public java.lang.String getReviewStatus() {
return _ideas.getReviewStatus();
}
/**
* Returns the shortdescription of this ideas.
*
......@@ -1038,6 +1055,16 @@ public class IdeasWrapper implements Ideas, ModelWrapper<Ideas> {
_ideas.setRating(rating);
}
/**
* Sets the review status of this ideas.
*
* @param reviewStatus the review status of this ideas
*/
@Override
public void setReviewStatus(java.lang.String reviewStatus) {
_ideas.setReviewStatus(reviewStatus);
}
/**
* Sets the shortdescription of this ideas.
*
......
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package ideaService.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.annotation.ImplementationClassName;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.util.Accessor;
/**
* The extended model interface for the Review service. Represents a row in the &quot;IDEA_Review&quot; database table, with each column mapped to a property of this class.
*
* @author Brian Wing Shun Chan
* @see ReviewModel
* @see ideaService.model.impl.ReviewImpl
* @see ideaService.model.impl.ReviewModelImpl
* @generated
*/
@ImplementationClassName("ideaService.model.impl.ReviewImpl")
@ProviderType
public interface Review extends ReviewModel, PersistedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add methods to {@link ideaService.model.impl.ReviewImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
public static final Accessor<Review, Long> REVIEW_ID_ACCESSOR = new Accessor<Review, Long>() {
@Override
public Long get(Review review) {
return review.getReviewId();
}
@Override
public Class<Long> getAttributeClass() {
return Long.class;
}
@Override
public Class<Review> getTypeClass() {
return Review.class;
}
};
}
\ No newline at end of file
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package ideaService.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.model.BaseModel;
import com.liferay.portal.kernel.model.CacheModel;
import com.liferay.portal.kernel.model.GroupedModel;
import com.liferay.portal.kernel.model.ShardedModel;
import com.liferay.portal.kernel.model.StagedAuditedModel;
import com.liferay.portal.kernel.service.ServiceContext;
import java.io.Serializable;
import java.util.Date;
/**
* The base model interface for the Review service. Represents a row in the &quot;IDEA_Review&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This interface and its corresponding implementation {@link ideaService.model.impl.ReviewModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link ideaService.model.impl.ReviewImpl}.
* </p>
*
* @author Brian Wing Shun Chan
* @see Review
* @see ideaService.model.impl.ReviewImpl
* @see ideaService.model.impl.ReviewModelImpl
* @generated
*/
@ProviderType
public interface ReviewModel extends BaseModel<Review>, GroupedModel,
ShardedModel, StagedAuditedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. All methods that expect a review model instance should use the {@link Review} interface instead.
*/
/**
* Returns the primary key of this review.
*
* @return the primary key of this review
*/
public long getPrimaryKey();
/**
* Sets the primary key of this review.
*
* @param primaryKey the primary key of this review
*/
public void setPrimaryKey(long primaryKey);
/**
* Returns the uuid of this review.
*
* @return the uuid of this review
*/
@AutoEscape
@Override
public String getUuid();
/**
* Sets the uuid of this review.
*
* @param uuid the uuid of this review
*/
@Override
public void setUuid(String uuid);
/**
* Returns the review ID of this review.
*
* @return the review ID of this review
*/
public long getReviewId();
/**
* Sets the review ID of this review.
*
* @param reviewId the review ID of this review
*/
public void setReviewId(long reviewId);
/**
* Returns the group ID of this review.
*
* @return the group ID of this review
*/
@Override
public long getGroupId();
/**
* Sets the group ID of this review.
*
* @param groupId the group ID of this review
*/
@Override
public void setGroupId(long groupId);
/**
* Returns the company ID of this review.
*
* @return the company ID of this review
*/
@Override
public long getCompanyId();
/**
* Sets the company ID of this review.
*
* @param companyId the company ID of this review
*/
@Override
public void setCompanyId(long companyId);
/**
* Returns the user ID of this review.
*
* @return the user ID of this review
*/
@Override
public long getUserId();
/**
* Sets the user ID of this review.
*
* @param userId the user ID of this review
*/
@Override
public void setUserId(long userId);
/**
* Returns the user uuid of this review.
*
* @return the user uuid of this review
*/
@Override
public String getUserUuid();
/**
* Sets the user uuid of this review.
*
* @param userUuid the user uuid of this review
*/
@Override
public void setUserUuid(String userUuid);
/**
* Returns the user name of this review.
*
* @return the user name of this review
*/
@AutoEscape
@Override
public String getUserName();
/**
* Sets the user name of this review.
*
* @param userName the user name of this review
*/
@Override
public void setUserName(String userName);
/**
* Returns the create date of this review.
*
* @return the create date of this review
*/
@Override
public Date getCreateDate();
/**
* Sets the create date of this review.
*
* @param createDate the create date of this review
*/
@Override
public void setCreateDate(Date createDate);
/**
* Returns the modified date of this review.
*
* @return the modified date of this review
*/
@Override
public Date getModifiedDate();
/**
* Sets the modified date of this review.
*
* @param modifiedDate the modified date of this review
*/
@Override
public void setModifiedDate(Date modifiedDate);
/**
* Returns the accepted of this review.
*
* @return the accepted of this review
*/
public boolean getAccepted();
/**
* Returns <code>true</code> if this review is accepted.
*
* @return <code>true</code> if this review is accepted; <code>false</code> otherwise
*/
public boolean isAccepted();
/**
* Sets whether this review is accepted.
*
* @param accepted the accepted of this review
*/
public void setAccepted(boolean accepted);
/**
* Returns the feedback of this review.
*
* @return the feedback of this review
*/
@AutoEscape
public String getFeedback();
/**
* Sets the feedback of this review.
*
* @param feedback the feedback of this review
*/
public void setFeedback(String feedback);
/**
* Returns the ideas ID ref of this review.
*
* @return the ideas ID ref of this review
*/
public long getIdeasIdRef();
/**
* Sets the ideas ID ref of this review.
*
* @param ideasIdRef the ideas ID ref of this review
*/
public void setIdeasIdRef(long ideasIdRef);
@Override
public boolean isNew();
@Override
public void setNew(boolean n);
@Override
public boolean isCachedModel();
@Override
public void setCachedModel(boolean cachedModel);
@Override
public boolean isEscapedModel();
@Override
public Serializable getPrimaryKeyObj();
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj);
@Override
public ExpandoBridge getExpandoBridge();
@Override
public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext);
@Override
public Object clone();
@Override
public int compareTo(ideaService.model.Review review);
@Override
public int hashCode();
@Override
public CacheModel<ideaService.model.Review> toCacheModel();
@Override
public ideaService.model.Review toEscapedModel();
@Override
public ideaService.model.Review toUnescapedModel();
@Override
public String toString();
@Override
public String toXmlString();
}
\ No newline at end of file