Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lps 100067 #77303

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -16,6 +16,7 @@

import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.model.BaseModel;
import com.liferay.portal.kernel.model.MVCCModel;
import com.liferay.portal.kernel.model.ShardedModel;

import org.osgi.annotation.versioning.ProviderType;
Expand All @@ -33,7 +34,7 @@
*/
@ProviderType
public interface JournalArticleLocalizationModel
extends BaseModel<JournalArticleLocalization>, ShardedModel {
extends BaseModel<JournalArticleLocalization>, MVCCModel, ShardedModel {

/*
* NOTE FOR DEVELOPERS:
Expand All @@ -55,6 +56,22 @@ public interface JournalArticleLocalizationModel
*/
public void setPrimaryKey(long primaryKey);

/**
* Returns the mvcc version of this journal article localization.
*
* @return the mvcc version of this journal article localization
*/
@Override
public long getMvccVersion();

/**
* Sets the mvcc version of this journal article localization.
*
* @param mvccVersion the mvcc version of this journal article localization
*/
@Override
public void setMvccVersion(long mvccVersion);

/**
* Returns the article localization ID of this journal article localization.
*
Expand Down
Expand Up @@ -36,6 +36,7 @@ public static JournalArticleLocalizationSoap toSoapModel(
JournalArticleLocalizationSoap soapModel =
new JournalArticleLocalizationSoap();

soapModel.setMvccVersion(model.getMvccVersion());
soapModel.setArticleLocalizationId(model.getArticleLocalizationId());
soapModel.setCompanyId(model.getCompanyId());
soapModel.setArticlePK(model.getArticlePK());
Expand Down Expand Up @@ -105,6 +106,14 @@ public void setPrimaryKey(long pk) {
setArticleLocalizationId(pk);
}

public long getMvccVersion() {
return _mvccVersion;
}

public void setMvccVersion(long mvccVersion) {
_mvccVersion = mvccVersion;
}

public long getArticleLocalizationId() {
return _articleLocalizationId;
}
Expand Down Expand Up @@ -153,6 +162,7 @@ public void setLanguageId(String languageId) {
_languageId = languageId;
}

private long _mvccVersion;
private long _articleLocalizationId;
private long _companyId;
private long _articlePK;
Expand Down
Expand Up @@ -47,6 +47,7 @@ public JournalArticleLocalizationWrapper(
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();

attributes.put("mvccVersion", getMvccVersion());
attributes.put("articleLocalizationId", getArticleLocalizationId());
attributes.put("companyId", getCompanyId());
attributes.put("articlePK", getArticlePK());
Expand All @@ -59,6 +60,12 @@ public Map<String, Object> getModelAttributes() {

@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long mvccVersion = (Long)attributes.get("mvccVersion");

if (mvccVersion != null) {
setMvccVersion(mvccVersion);
}

Long articleLocalizationId = (Long)attributes.get(
"articleLocalizationId");

Expand Down Expand Up @@ -147,6 +154,16 @@ public String getLanguageId() {
return model.getLanguageId();
}

/**
* Returns the mvcc version of this journal article localization.
*
* @return the mvcc version of this journal article localization
*/
@Override
public long getMvccVersion() {
return model.getMvccVersion();
}

/**
* Returns the primary key of this journal article localization.
*
Expand Down Expand Up @@ -217,6 +234,16 @@ public void setLanguageId(String languageId) {
model.setLanguageId(languageId);
}

/**
* Sets the mvcc version of this journal article localization.
*
* @param mvccVersion the mvcc version of this journal article localization
*/
@Override
public void setMvccVersion(long mvccVersion) {
model.setMvccVersion(mvccVersion);
}

/**
* Sets the primary key of this journal article localization.
*
Expand Down
Expand Up @@ -18,6 +18,7 @@
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.model.AttachedModel;
import com.liferay.portal.kernel.model.BaseModel;
import com.liferay.portal.kernel.model.MVCCModel;
import com.liferay.portal.kernel.model.ResourcedModel;
import com.liferay.portal.kernel.model.ShardedModel;
import com.liferay.portal.kernel.model.StagedGroupedModel;
Expand All @@ -41,7 +42,7 @@
*/
@ProviderType
public interface JournalArticleModel
extends AttachedModel, BaseModel<JournalArticle>, ResourcedModel,
extends AttachedModel, BaseModel<JournalArticle>, MVCCModel, ResourcedModel,
ShardedModel, StagedGroupedModel, TrashedModel, WorkflowedModel {

/*
Expand All @@ -64,6 +65,22 @@ public interface JournalArticleModel
*/
public void setPrimaryKey(long primaryKey);

/**
* Returns the mvcc version of this journal article.
*
* @return the mvcc version of this journal article
*/
@Override
public long getMvccVersion();

/**
* Sets the mvcc version of this journal article.
*
* @param mvccVersion the mvcc version of this journal article
*/
@Override
public void setMvccVersion(long mvccVersion);

/**
* Returns the uuid of this journal article.
*
Expand Down
Expand Up @@ -16,6 +16,7 @@

import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.model.BaseModel;
import com.liferay.portal.kernel.model.MVCCModel;
import com.liferay.portal.kernel.model.ShardedModel;

import org.osgi.annotation.versioning.ProviderType;
Expand All @@ -33,7 +34,7 @@
*/
@ProviderType
public interface JournalArticleResourceModel
extends BaseModel<JournalArticleResource>, ShardedModel {
extends BaseModel<JournalArticleResource>, MVCCModel, ShardedModel {

/*
* NOTE FOR DEVELOPERS:
Expand All @@ -55,6 +56,22 @@ public interface JournalArticleResourceModel
*/
public void setPrimaryKey(long primaryKey);

/**
* Returns the mvcc version of this journal article resource.
*
* @return the mvcc version of this journal article resource
*/
@Override
public long getMvccVersion();

/**
* Sets the mvcc version of this journal article resource.
*
* @param mvccVersion the mvcc version of this journal article resource
*/
@Override
public void setMvccVersion(long mvccVersion);

/**
* Returns the uuid of this journal article resource.
*
Expand Down
Expand Up @@ -35,6 +35,7 @@ public static JournalArticleResourceSoap toSoapModel(

JournalArticleResourceSoap soapModel = new JournalArticleResourceSoap();

soapModel.setMvccVersion(model.getMvccVersion());
soapModel.setUuid(model.getUuid());
soapModel.setResourcePrimKey(model.getResourcePrimKey());
soapModel.setGroupId(model.getGroupId());
Expand Down Expand Up @@ -102,6 +103,14 @@ public void setPrimaryKey(long pk) {
setResourcePrimKey(pk);
}

public long getMvccVersion() {
return _mvccVersion;
}

public void setMvccVersion(long mvccVersion) {
_mvccVersion = mvccVersion;
}

public String getUuid() {
return _uuid;
}
Expand Down Expand Up @@ -142,6 +151,7 @@ public void setArticleId(String articleId) {
_articleId = articleId;
}

private long _mvccVersion;
private String _uuid;
private long _resourcePrimKey;
private long _groupId;
Expand Down
Expand Up @@ -46,6 +46,7 @@ public JournalArticleResourceWrapper(
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();

attributes.put("mvccVersion", getMvccVersion());
attributes.put("uuid", getUuid());
attributes.put("resourcePrimKey", getResourcePrimKey());
attributes.put("groupId", getGroupId());
Expand All @@ -57,6 +58,12 @@ public Map<String, Object> getModelAttributes() {

@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long mvccVersion = (Long)attributes.get("mvccVersion");

if (mvccVersion != null) {
setMvccVersion(mvccVersion);
}

String uuid = (String)attributes.get("uuid");

if (uuid != null) {
Expand Down Expand Up @@ -123,6 +130,16 @@ public long getLatestArticlePK() {
return model.getLatestArticlePK();
}

/**
* Returns the mvcc version of this journal article resource.
*
* @return the mvcc version of this journal article resource
*/
@Override
public long getMvccVersion() {
return model.getMvccVersion();
}

/**
* Returns the primary key of this journal article resource.
*
Expand Down Expand Up @@ -188,6 +205,16 @@ public void setGroupId(long groupId) {
model.setGroupId(groupId);
}

/**
* Sets the mvcc version of this journal article resource.
*
* @param mvccVersion the mvcc version of this journal article resource
*/
@Override
public void setMvccVersion(long mvccVersion) {
model.setMvccVersion(mvccVersion);
}

/**
* Sets the primary key of this journal article resource.
*
Expand Down
Expand Up @@ -34,6 +34,7 @@ public class JournalArticleSoap implements Serializable {
public static JournalArticleSoap toSoapModel(JournalArticle model) {
JournalArticleSoap soapModel = new JournalArticleSoap();

soapModel.setMvccVersion(model.getMvccVersion());
soapModel.setUuid(model.getUuid());
soapModel.setId(model.getId());
soapModel.setResourcePrimKey(model.getResourcePrimKey());
Expand Down Expand Up @@ -125,6 +126,14 @@ public void setPrimaryKey(long pk) {
setId(pk);
}

public long getMvccVersion() {
return _mvccVersion;
}

public void setMvccVersion(long mvccVersion) {
_mvccVersion = mvccVersion;
}

public String getUuid() {
return _uuid;
}
Expand Down Expand Up @@ -397,6 +406,7 @@ public void setStatusDate(Date statusDate) {
_statusDate = statusDate;
}

private long _mvccVersion;
private String _uuid;
private long _id;
private long _resourcePrimKey;
Expand Down
Expand Up @@ -46,6 +46,7 @@ public JournalArticleWrapper(JournalArticle journalArticle) {
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();

attributes.put("mvccVersion", getMvccVersion());
attributes.put("uuid", getUuid());
attributes.put("id", getId());
attributes.put("resourcePrimKey", getResourcePrimKey());
Expand Down Expand Up @@ -85,6 +86,12 @@ public Map<String, Object> getModelAttributes() {

@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long mvccVersion = (Long)attributes.get("mvccVersion");

if (mvccVersion != null) {
setMvccVersion(mvccVersion);
}

String uuid = (String)attributes.get("uuid");

if (uuid != null) {
Expand Down Expand Up @@ -658,6 +665,16 @@ public Date getModifiedDate() {
return model.getModifiedDate();
}

/**
* Returns the mvcc version of this journal article.
*
* @return the mvcc version of this journal article
*/
@Override
public long getMvccVersion() {
return model.getMvccVersion();
}

/**
* Returns the primary key of this journal article.
*
Expand Down Expand Up @@ -1311,6 +1328,16 @@ public void setModifiedDate(Date modifiedDate) {
model.setModifiedDate(modifiedDate);
}

/**
* Sets the mvcc version of this journal article.
*
* @param mvccVersion the mvcc version of this journal article
*/
@Override
public void setMvccVersion(long mvccVersion) {
model.setMvccVersion(mvccVersion);
}

/**
* Sets the primary key of this journal article.
*
Expand Down