+ * 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 ImageImpl}. + *
+ * + * @author Brian Wing Shun Chan + * @see ImageImpl + * @see com.liferay.portal.model.Image + * @generated + */ +public abstract class ImageBaseImpl extends ImageModelImpl implements Image { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. All methods that expect a image model instance should use the {@link Image} interface instead. + */ + @Override + public void persist() throws SystemException { + if (this.isNew()) { + ImageLocalServiceUtil.addImage(this); + } + else { + ImageLocalServiceUtil.updateImage(this); + } + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/model/impl/ImageCacheModel.java b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/model/impl/ImageCacheModel.java new file mode 100644 index 00000000..7bbb7127 --- /dev/null +++ b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/model/impl/ImageCacheModel.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2000-2013 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.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.model.CacheModel; +import com.liferay.portal.model.Image; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +import java.util.Date; + +/** + * The cache model class for representing Image in entity cache. + * + * @author Brian Wing Shun Chan + * @see Image + * @generated + */ +public class ImageCacheModel implements CacheModel+ * This implementation and its corresponding interface {@link com.liferay.portal.model.ImageModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link ImageImpl}. + *
+ * + * @author Brian Wing Shun Chan + * @see ImageImpl + * @see com.liferay.portal.model.Image + * @see com.liferay.portal.model.ImageModel + * @generated + */ +@JSON(strict = true) +public class ImageModelImpl extends BaseModelImpl+ * 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 PortalPreferencesImpl}. + *
+ * + * @author Brian Wing Shun Chan + * @see PortalPreferencesImpl + * @see com.liferay.portal.model.PortalPreferences + * @generated + */ +public abstract class PortalPreferencesBaseImpl + extends PortalPreferencesModelImpl implements PortalPreferences { + /* + * NOTE FOR DEVELOPERS: + * + * Never modify or reference this class directly. All methods that expect a portal preferences model instance should use the {@link PortalPreferences} interface instead. + */ + @Override + public void persist() throws SystemException { + if (this.isNew()) { + PortalPreferencesLocalServiceUtil.addPortalPreferences(this); + } + else { + PortalPreferencesLocalServiceUtil.updatePortalPreferences(this); + } + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/model/impl/PortalPreferencesCacheModel.java b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/model/impl/PortalPreferencesCacheModel.java new file mode 100644 index 00000000..e69393f2 --- /dev/null +++ b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/model/impl/PortalPreferencesCacheModel.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2000-2013 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.util.StringBundler; +import com.liferay.portal.kernel.util.StringPool; +import com.liferay.portal.model.CacheModel; +import com.liferay.portal.model.PortalPreferences; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +/** + * The cache model class for representing PortalPreferences in entity cache. + * + * @author Brian Wing Shun Chan + * @see PortalPreferences + * @generated + */ +public class PortalPreferencesCacheModel implements CacheModel+ * This implementation and its corresponding interface {@link com.liferay.portal.model.PortalPreferencesModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link PortalPreferencesImpl}. + *
+ * + * @author Brian Wing Shun Chan + * @see PortalPreferencesImpl + * @see com.liferay.portal.model.PortalPreferences + * @see com.liferay.portal.model.PortalPreferencesModel + * @generated + */ +public class PortalPreferencesModelImpl extends BaseModelImpl