Skip to content

Commit

Permalink
LPS-122562 Build Service.
Browse files Browse the repository at this point in the history
  • Loading branch information
Preston-Crary authored and brianchandotcom committed Nov 30, 2020
1 parent b554eb8 commit 948e702
Show file tree
Hide file tree
Showing 30 changed files with 9,682 additions and 0 deletions.

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions portal-impl/src/META-INF/portal-hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<import class="com.liferay.portal.kernel.model.Portlet" />
<import class="com.liferay.portal.kernel.model.PortletItem" />
<import class="com.liferay.portal.kernel.model.PortletPreferences" />
<import class="com.liferay.portal.kernel.model.PortletPreferenceValue" />
<import class="com.liferay.portal.kernel.model.RecentLayoutBranch" />
<import class="com.liferay.portal.kernel.model.RecentLayoutRevision" />
<import class="com.liferay.portal.kernel.model.RecentLayoutSetBranch" />
Expand Down Expand Up @@ -709,6 +710,20 @@
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="portletId" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="preferences" type="com.liferay.portal.dao.orm.hibernate.StringClobType" />
</class>
<class dynamic-update="true" name="com.liferay.portal.model.impl.PortletPreferenceValueImpl" table="PortletPreferenceValue">
<id access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="portletPreferenceValueId" type="long">
<generator class="assigned" />
</id>
<version access="com.liferay.portal.dao.orm.hibernate.PrivatePropertyAccessor" name="mvccVersion" type="long" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="ctCollectionId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="companyId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="portletPreferencesId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="name" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" column="index_" name="index" type="com.liferay.portal.dao.orm.hibernate.IntegerType" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="smallValue" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="largeValue" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="readOnly" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
</class>
<class dynamic-update="true" name="com.liferay.portal.model.impl.RecentLayoutBranchImpl" table="RecentLayoutBranch">
<id access="com.liferay.portal.dao.orm.hibernate.LiferayPropertyAccessor" name="recentLayoutBranchId" type="long">
<generator class="assigned" />
Expand Down
12 changes: 12 additions & 0 deletions portal-impl/src/META-INF/portal-model-hints.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,18 @@
<hint-collection name="CLOB" />
</field>
</model>
<model name="com.liferay.portal.kernel.model.PortletPreferenceValue">
<field name="mvccVersion" type="long" />
<field name="ctCollectionId" type="long" />
<field name="portletPreferenceValueId" type="long" />
<field name="companyId" type="long" />
<field name="portletPreferencesId" type="long" />
<field name="name" type="String" />
<field name="index" type="int" />
<field name="smallValue" type="String" />
<field name="largeValue" type="String" />
<field name="readOnly" type="boolean" />
</model>
<model name="com.liferay.portal.kernel.model.RecentLayoutBranch">
<field name="mvccVersion" type="long" />
<field name="recentLayoutBranchId" type="long" />
Expand Down
2 changes: 2 additions & 0 deletions portal-impl/src/META-INF/portal-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@
<bean class="com.liferay.portal.service.impl.PortletPreferencesServiceImpl" id="com.liferay.portal.kernel.service.PortletPreferencesService" />
<bean class="com.liferay.portal.service.persistence.impl.PortletPreferencesPersistenceImpl" id="com.liferay.portal.kernel.service.persistence.PortletPreferencesPersistence" />
<bean class="com.liferay.portal.service.persistence.impl.PortletPreferencesFinderImpl" id="com.liferay.portal.kernel.service.persistence.PortletPreferencesFinder" />
<bean class="com.liferay.portal.service.impl.PortletPreferenceValueLocalServiceImpl" id="com.liferay.portal.kernel.service.PortletPreferenceValueLocalService" />
<bean class="com.liferay.portal.service.persistence.impl.PortletPreferenceValuePersistenceImpl" id="com.liferay.portal.kernel.service.persistence.PortletPreferenceValuePersistence" />
<bean class="com.liferay.portal.service.impl.RecentLayoutBranchLocalServiceImpl" id="com.liferay.portal.kernel.service.RecentLayoutBranchLocalService" />
<bean class="com.liferay.portal.service.persistence.impl.RecentLayoutBranchPersistenceImpl" id="com.liferay.portal.kernel.service.persistence.RecentLayoutBranchPersistence" />
<bean class="com.liferay.portal.service.impl.RecentLayoutRevisionLocalServiceImpl" id="com.liferay.portal.kernel.service.RecentLayoutRevisionLocalService" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* 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 com.liferay.portal.model.impl;

import com.liferay.portal.kernel.model.PortletPreferenceValue;
import com.liferay.portal.kernel.service.PortletPreferenceValueLocalServiceUtil;

/**
* The extended model base implementation for the PortletPreferenceValue service. Represents a row in the &quot;PortletPreferenceValue&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link PortletPreferenceValueImpl}.
* </p>
*
* @author Brian Wing Shun Chan
* @see PortletPreferenceValueImpl
* @see PortletPreferenceValue
* @generated
*/
public abstract class PortletPreferenceValueBaseImpl
extends PortletPreferenceValueModelImpl implements PortletPreferenceValue {

/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this class directly. All methods that expect a portlet preference value model instance should use the <code>PortletPreferenceValue</code> interface instead.
*/
@Override
public void persist() {
if (this.isNew()) {
PortletPreferenceValueLocalServiceUtil.addPortletPreferenceValue(
this);
}
else {
PortletPreferenceValueLocalServiceUtil.updatePortletPreferenceValue(
this);
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
/**
* 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 com.liferay.portal.model.impl;

import com.liferay.petra.lang.HashUtil;
import com.liferay.petra.string.StringBundler;
import com.liferay.portal.kernel.model.CacheModel;
import com.liferay.portal.kernel.model.MVCCModel;
import com.liferay.portal.kernel.model.PortletPreferenceValue;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

/**
* The cache model class for representing PortletPreferenceValue in entity cache.
*
* @author Brian Wing Shun Chan
* @generated
*/
public class PortletPreferenceValueCacheModel
implements CacheModel<PortletPreferenceValue>, Externalizable, MVCCModel {

@Override
public boolean equals(Object object) {
if (this == object) {
return true;
}

if (!(object instanceof PortletPreferenceValueCacheModel)) {
return false;
}

PortletPreferenceValueCacheModel portletPreferenceValueCacheModel =
(PortletPreferenceValueCacheModel)object;

if ((portletPreferenceValueId ==
portletPreferenceValueCacheModel.portletPreferenceValueId) &&
(mvccVersion == portletPreferenceValueCacheModel.mvccVersion)) {

return true;
}

return false;
}

@Override
public int hashCode() {
int hashCode = HashUtil.hash(0, portletPreferenceValueId);

return HashUtil.hash(hashCode, mvccVersion);
}

@Override
public long getMvccVersion() {
return mvccVersion;
}

@Override
public void setMvccVersion(long mvccVersion) {
this.mvccVersion = mvccVersion;
}

@Override
public String toString() {
StringBundler sb = new StringBundler(21);

sb.append("{mvccVersion=");
sb.append(mvccVersion);
sb.append(", ctCollectionId=");
sb.append(ctCollectionId);
sb.append(", portletPreferenceValueId=");
sb.append(portletPreferenceValueId);
sb.append(", companyId=");
sb.append(companyId);
sb.append(", portletPreferencesId=");
sb.append(portletPreferencesId);
sb.append(", name=");
sb.append(name);
sb.append(", index=");
sb.append(index);
sb.append(", smallValue=");
sb.append(smallValue);
sb.append(", largeValue=");
sb.append(largeValue);
sb.append(", readOnly=");
sb.append(readOnly);
sb.append("}");

return sb.toString();
}

@Override
public PortletPreferenceValue toEntityModel() {
PortletPreferenceValueImpl portletPreferenceValueImpl =
new PortletPreferenceValueImpl();

portletPreferenceValueImpl.setMvccVersion(mvccVersion);
portletPreferenceValueImpl.setCtCollectionId(ctCollectionId);
portletPreferenceValueImpl.setPortletPreferenceValueId(
portletPreferenceValueId);
portletPreferenceValueImpl.setCompanyId(companyId);
portletPreferenceValueImpl.setPortletPreferencesId(
portletPreferencesId);

if (name == null) {
portletPreferenceValueImpl.setName("");
}
else {
portletPreferenceValueImpl.setName(name);
}

portletPreferenceValueImpl.setIndex(index);

if (smallValue == null) {
portletPreferenceValueImpl.setSmallValue("");
}
else {
portletPreferenceValueImpl.setSmallValue(smallValue);
}

if (largeValue == null) {
portletPreferenceValueImpl.setLargeValue("");
}
else {
portletPreferenceValueImpl.setLargeValue(largeValue);
}

portletPreferenceValueImpl.setReadOnly(readOnly);

portletPreferenceValueImpl.resetOriginalValues();

return portletPreferenceValueImpl;
}

@Override
public void readExternal(ObjectInput objectInput) throws IOException {
mvccVersion = objectInput.readLong();

ctCollectionId = objectInput.readLong();

portletPreferenceValueId = objectInput.readLong();

companyId = objectInput.readLong();

portletPreferencesId = objectInput.readLong();
name = objectInput.readUTF();

index = objectInput.readInt();
smallValue = objectInput.readUTF();
largeValue = objectInput.readUTF();

readOnly = objectInput.readBoolean();
}

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
objectOutput.writeLong(mvccVersion);

objectOutput.writeLong(ctCollectionId);

objectOutput.writeLong(portletPreferenceValueId);

objectOutput.writeLong(companyId);

objectOutput.writeLong(portletPreferencesId);

if (name == null) {
objectOutput.writeUTF("");
}
else {
objectOutput.writeUTF(name);
}

objectOutput.writeInt(index);

if (smallValue == null) {
objectOutput.writeUTF("");
}
else {
objectOutput.writeUTF(smallValue);
}

if (largeValue == null) {
objectOutput.writeUTF("");
}
else {
objectOutput.writeUTF(largeValue);
}

objectOutput.writeBoolean(readOnly);
}

public long mvccVersion;
public long ctCollectionId;
public long portletPreferenceValueId;
public long companyId;
public long portletPreferencesId;
public String name;
public int index;
public String smallValue;
public String largeValue;
public boolean readOnly;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**
* 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 com.liferay.portal.model.impl;

/**
* The extended model implementation for the PortletPreferenceValue service. Represents a row in the &quot;PortletPreferenceValue&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the <code>com.liferay.portal.kernel.model.PortletPreferenceValue</code> interface.
* </p>
*
* @author Brian Wing Shun Chan
*/
public class PortletPreferenceValueImpl extends PortletPreferenceValueBaseImpl {

/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a portlet preference value model instance should use the {@link com.liferay.portal.kernel.model.PortletPreferenceValue} interface instead.
*/
public PortletPreferenceValueImpl() {
}

}
Loading

0 comments on commit 948e702

Please sign in to comment.