--- /dev/null
+/**
+ * Copyright (c) 2000-2012 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.pentila.entSavoie.internalMessaging.service.base;
+
+import com.liferay.counter.service.CounterLocalService;
+
+import com.liferay.portal.kernel.bean.BeanReference;
+import com.liferay.portal.kernel.bean.IdentifiableBean;
+import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
+import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
+import com.liferay.portal.kernel.dao.orm.DynamicQuery;
+import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
+import com.liferay.portal.kernel.exception.PortalException;
+import com.liferay.portal.kernel.exception.SystemException;
+import com.liferay.portal.kernel.search.Indexable;
+import com.liferay.portal.kernel.search.IndexableType;
+import com.liferay.portal.kernel.util.OrderByComparator;
+import com.liferay.portal.model.PersistedModel;
+import com.liferay.portal.service.BaseLocalServiceImpl;
+import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil;
+import com.liferay.portal.service.ResourceLocalService;
+import com.liferay.portal.service.ResourceService;
+import com.liferay.portal.service.UserLocalService;
+import com.liferay.portal.service.UserService;
+import com.liferay.portal.service.persistence.ResourcePersistence;
+import com.liferay.portal.service.persistence.UserPersistence;
+
+import com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage;
+import com.pentila.entSavoie.internalMessaging.service.AccountLocalService;
+import com.pentila.entSavoie.internalMessaging.service.AttachmentLocalService;
+import com.pentila.entSavoie.internalMessaging.service.ExternalCommunicationRightsLocalService;
+import com.pentila.entSavoie.internalMessaging.service.FolderLocalService;
+import com.pentila.entSavoie.internalMessaging.service.InternalAttachFileLocalService;
+import com.pentila.entSavoie.internalMessaging.service.InternalAutoResponseLocalService;
+import com.pentila.entSavoie.internalMessaging.service.InternalContentLocalService;
+import com.pentila.entSavoie.internalMessaging.service.InternalFolderMessageLocalService;
+import com.pentila.entSavoie.internalMessaging.service.InternalMessageLocalService;
+import com.pentila.entSavoie.internalMessaging.service.InternalReceiverLocalService;
+import com.pentila.entSavoie.internalMessaging.service.InternalReceiversLocalService;
+import com.pentila.entSavoie.internalMessaging.service.MessageLocalService;
+import com.pentila.entSavoie.internalMessaging.service.MessagerieLocalService;
+import com.pentila.entSavoie.internalMessaging.service.RssChanelLocalService;
+import com.pentila.entSavoie.internalMessaging.service.RssItemLocalService;
+import com.pentila.entSavoie.internalMessaging.service.persistence.AccountPersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.AttachmentPersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.ExternalCommunicationRightsPersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.FolderPersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.InternalAttachFilePersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.InternalAutoResponsePersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.InternalContentPersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.InternalFolderMessagePersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.InternalMessageFinder;
+import com.pentila.entSavoie.internalMessaging.service.persistence.InternalMessagePersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.InternalReceiverPersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.InternalReceiversPersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.MessagePersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.RssChanelPersistence;
+import com.pentila.entSavoie.internalMessaging.service.persistence.RssItemPersistence;
+
+import java.io.Serializable;
+
+import java.util.List;
+
+import javax.sql.DataSource;
+
+/**
+ * The base implementation of the internal folder message local service.
+ *
+ * <p>
+ * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.pentila.entSavoie.internalMessaging.service.impl.InternalFolderMessageLocalServiceImpl}.
+ * </p>
+ *
+ * @author Igor Barma - Mathieu Amblard
+ * @see com.pentila.entSavoie.internalMessaging.service.impl.InternalFolderMessageLocalServiceImpl
+ * @see com.pentila.entSavoie.internalMessaging.service.InternalFolderMessageLocalServiceUtil
+ * @generated
+ */
+public abstract class InternalFolderMessageLocalServiceBaseImpl
+ extends BaseLocalServiceImpl implements InternalFolderMessageLocalService,
+ IdentifiableBean {
+ /*
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never modify or reference this class directly. Always use {@link com.pentila.entSavoie.internalMessaging.service.InternalFolderMessageLocalServiceUtil} to access the internal folder message local service.
+ */
+
+ /**
+ * Adds the internal folder message to the database. Also notifies the appropriate model listeners.
+ *
+ * @param internalFolderMessage the internal folder message
+ * @return the internal folder message that was added
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.REINDEX)
+ public InternalFolderMessage addInternalFolderMessage(
+ InternalFolderMessage internalFolderMessage) throws SystemException {
+ internalFolderMessage.setNew(true);
+
+ return internalFolderMessagePersistence.update(internalFolderMessage,
+ false);
+ }
+
+ /**
+ * Creates a new internal folder message with the primary key. Does not add the internal folder message to the database.
+ *
+ * @param folderMessageId the primary key for the new internal folder message
+ * @return the new internal folder message
+ */
+ public InternalFolderMessage createInternalFolderMessage(
+ long folderMessageId) {
+ return internalFolderMessagePersistence.create(folderMessageId);
+ }
+
+ /**
+ * Deletes the internal folder message with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param folderMessageId the primary key of the internal folder message
+ * @return the internal folder message that was removed
+ * @throws PortalException if a internal folder message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.DELETE)
+ public InternalFolderMessage deleteInternalFolderMessage(
+ long folderMessageId) throws PortalException, SystemException {
+ return internalFolderMessagePersistence.remove(folderMessageId);
+ }
+
+ /**
+ * Deletes the internal folder message from the database. Also notifies the appropriate model listeners.
+ *
+ * @param internalFolderMessage the internal folder message
+ * @return the internal folder message that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.DELETE)
+ public InternalFolderMessage deleteInternalFolderMessage(
+ InternalFolderMessage internalFolderMessage) throws SystemException {
+ return internalFolderMessagePersistence.remove(internalFolderMessage);
+ }
+
+ public DynamicQuery dynamicQuery() {
+ Class<?> clazz = getClass();
+
+ return DynamicQueryFactoryUtil.forClass(InternalFolderMessage.class,
+ clazz.getClassLoader());
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns the matching rows.
+ *
+ * @param dynamicQuery the dynamic query
+ * @return the matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public List dynamicQuery(DynamicQuery dynamicQuery)
+ throws SystemException {
+ return internalFolderMessagePersistence.findWithDynamicQuery(dynamicQuery);
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns a range of the matching rows.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param dynamicQuery the dynamic query
+ * @param start the lower bound of the range of model instances
+ * @param end the upper bound of the range of model instances (not inclusive)
+ * @return the range of matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
+ throws SystemException {
+ return internalFolderMessagePersistence.findWithDynamicQuery(dynamicQuery,
+ start, end);
+ }
+
+ /**
+ * Performs a dynamic query on the database and returns an ordered range of the matching rows.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param dynamicQuery the dynamic query
+ * @param start the lower bound of the range of model instances
+ * @param end the upper bound of the range of model instances (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
+ * @return the ordered range of matching rows
+ * @throws SystemException if a system exception occurred
+ */
+ @SuppressWarnings("rawtypes")
+ public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
+ OrderByComparator orderByComparator) throws SystemException {
+ return internalFolderMessagePersistence.findWithDynamicQuery(dynamicQuery,
+ start, end, orderByComparator);
+ }
+
+ /**
+ * Returns the number of rows that match the dynamic query.
+ *
+ * @param dynamicQuery the dynamic query
+ * @return the number of rows that match the dynamic query
+ * @throws SystemException if a system exception occurred
+ */
+ public long dynamicQueryCount(DynamicQuery dynamicQuery)
+ throws SystemException {
+ return internalFolderMessagePersistence.countWithDynamicQuery(dynamicQuery);
+ }
+
+ public InternalFolderMessage fetchInternalFolderMessage(
+ long folderMessageId) throws SystemException {
+ return internalFolderMessagePersistence.fetchByPrimaryKey(folderMessageId);
+ }
+
+ /**
+ * Returns the internal folder message with the primary key.
+ *
+ * @param folderMessageId the primary key of the internal folder message
+ * @return the internal folder message
+ * @throws PortalException if a internal folder message with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public InternalFolderMessage getInternalFolderMessage(long folderMessageId)
+ throws PortalException, SystemException {
+ return internalFolderMessagePersistence.findByPrimaryKey(folderMessageId);
+ }
+
+ public PersistedModel getPersistedModel(Serializable primaryKeyObj)
+ throws PortalException, SystemException {
+ return internalFolderMessagePersistence.findByPrimaryKey(primaryKeyObj);
+ }
+
+ /**
+ * Returns a range of all the internal folder messages.
+ *
+ * <p>
+ * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
+ * </p>
+ *
+ * @param start the lower bound of the range of internal folder messages
+ * @param end the upper bound of the range of internal folder messages (not inclusive)
+ * @return the range of internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public List<InternalFolderMessage> getInternalFolderMessages(int start,
+ int end) throws SystemException {
+ return internalFolderMessagePersistence.findAll(start, end);
+ }
+
+ /**
+ * Returns the number of internal folder messages.
+ *
+ * @return the number of internal folder messages
+ * @throws SystemException if a system exception occurred
+ */
+ public int getInternalFolderMessagesCount() throws SystemException {
+ return internalFolderMessagePersistence.countAll();
+ }
+
+ /**
+ * Updates the internal folder message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
+ *
+ * @param internalFolderMessage the internal folder message
+ * @return the internal folder message that was updated
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.REINDEX)
+ public InternalFolderMessage updateInternalFolderMessage(
+ InternalFolderMessage internalFolderMessage) throws SystemException {
+ return updateInternalFolderMessage(internalFolderMessage, true);
+ }
+
+ /**
+ * Updates the internal folder message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
+ *
+ * @param internalFolderMessage the internal folder message
+ * @param merge whether to merge the internal folder message with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
+ * @return the internal folder message that was updated
+ * @throws SystemException if a system exception occurred
+ */
+ @Indexable(type = IndexableType.REINDEX)
+ public InternalFolderMessage updateInternalFolderMessage(
+ InternalFolderMessage internalFolderMessage, boolean merge)
+ throws SystemException {
+ internalFolderMessage.setNew(false);
+
+ return internalFolderMessagePersistence.update(internalFolderMessage,
+ merge);
+ }
+
+ /**
+ * Returns the account local service.
+ *
+ * @return the account local service
+ */
+ public AccountLocalService getAccountLocalService() {
+ return accountLocalService;
+ }
+
+ /**
+ * Sets the account local service.
+ *
+ * @param accountLocalService the account local service
+ */
+ public void setAccountLocalService(AccountLocalService accountLocalService) {
+ this.accountLocalService = accountLocalService;
+ }
+
+ /**
+ * Returns the account persistence.
+ *
+ * @return the account persistence
+ */
+ public AccountPersistence getAccountPersistence() {
+ return accountPersistence;
+ }
+
+ /**
+ * Sets the account persistence.
+ *
+ * @param accountPersistence the account persistence
+ */
+ public void setAccountPersistence(AccountPersistence accountPersistence) {
+ this.accountPersistence = accountPersistence;
+ }
+
+ /**
+ * Returns the attachment local service.
+ *
+ * @return the attachment local service
+ */
+ public AttachmentLocalService getAttachmentLocalService() {
+ return attachmentLocalService;
+ }
+
+ /**
+ * Sets the attachment local service.
+ *
+ * @param attachmentLocalService the attachment local service
+ */
+ public void setAttachmentLocalService(
+ AttachmentLocalService attachmentLocalService) {
+ this.attachmentLocalService = attachmentLocalService;
+ }
+
+ /**
+ * Returns the attachment persistence.
+ *
+ * @return the attachment persistence
+ */
+ public AttachmentPersistence getAttachmentPersistence() {
+ return attachmentPersistence;
+ }
+
+ /**
+ * Sets the attachment persistence.
+ *
+ * @param attachmentPersistence the attachment persistence
+ */
+ public void setAttachmentPersistence(
+ AttachmentPersistence attachmentPersistence) {
+ this.attachmentPersistence = attachmentPersistence;
+ }
+
+ /**
+ * Returns the external communication rights local service.
+ *
+ * @return the external communication rights local service
+ */
+ public ExternalCommunicationRightsLocalService getExternalCommunicationRightsLocalService() {
+ return externalCommunicationRightsLocalService;
+ }
+
+ /**
+ * Sets the external communication rights local service.
+ *
+ * @param externalCommunicationRightsLocalService the external communication rights local service
+ */
+ public void setExternalCommunicationRightsLocalService(
+ ExternalCommunicationRightsLocalService externalCommunicationRightsLocalService) {
+ this.externalCommunicationRightsLocalService = externalCommunicationRightsLocalService;
+ }
+
+ /**
+ * Returns the external communication rights persistence.
+ *
+ * @return the external communication rights persistence
+ */
+ public ExternalCommunicationRightsPersistence getExternalCommunicationRightsPersistence() {
+ return externalCommunicationRightsPersistence;
+ }
+
+ /**
+ * Sets the external communication rights persistence.
+ *
+ * @param externalCommunicationRightsPersistence the external communication rights persistence
+ */
+ public void setExternalCommunicationRightsPersistence(
+ ExternalCommunicationRightsPersistence externalCommunicationRightsPersistence) {
+ this.externalCommunicationRightsPersistence = externalCommunicationRightsPersistence;
+ }
+
+ /**
+ * Returns the folder local service.
+ *
+ * @return the folder local service
+ */
+ public FolderLocalService getFolderLocalService() {
+ return folderLocalService;
+ }
+
+ /**
+ * Sets the folder local service.
+ *
+ * @param folderLocalService the folder local service
+ */
+ public void setFolderLocalService(FolderLocalService folderLocalService) {
+ this.folderLocalService = folderLocalService;
+ }
+
+ /**
+ * Returns the folder persistence.
+ *
+ * @return the folder persistence
+ */
+ public FolderPersistence getFolderPersistence() {
+ return folderPersistence;
+ }
+
+ /**
+ * Sets the folder persistence.
+ *
+ * @param folderPersistence the folder persistence
+ */
+ public void setFolderPersistence(FolderPersistence folderPersistence) {
+ this.folderPersistence = folderPersistence;
+ }
+
+ /**
+ * Returns the internal attach file local service.
+ *
+ * @return the internal attach file local service
+ */
+ public InternalAttachFileLocalService getInternalAttachFileLocalService() {
+ return internalAttachFileLocalService;
+ }
+
+ /**
+ * Sets the internal attach file local service.
+ *
+ * @param internalAttachFileLocalService the internal attach file local service
+ */
+ public void setInternalAttachFileLocalService(
+ InternalAttachFileLocalService internalAttachFileLocalService) {
+ this.internalAttachFileLocalService = internalAttachFileLocalService;
+ }
+
+ /**
+ * Returns the internal attach file persistence.
+ *
+ * @return the internal attach file persistence
+ */
+ public InternalAttachFilePersistence getInternalAttachFilePersistence() {
+ return internalAttachFilePersistence;
+ }
+
+ /**
+ * Sets the internal attach file persistence.
+ *
+ * @param internalAttachFilePersistence the internal attach file persistence
+ */
+ public void setInternalAttachFilePersistence(
+ InternalAttachFilePersistence internalAttachFilePersistence) {
+ this.internalAttachFilePersistence = internalAttachFilePersistence;
+ }
+
+ /**
+ * Returns the internal auto response local service.
+ *
+ * @return the internal auto response local service
+ */
+ public InternalAutoResponseLocalService getInternalAutoResponseLocalService() {
+ return internalAutoResponseLocalService;
+ }
+
+ /**
+ * Sets the internal auto response local service.
+ *
+ * @param internalAutoResponseLocalService the internal auto response local service
+ */
+ public void setInternalAutoResponseLocalService(
+ InternalAutoResponseLocalService internalAutoResponseLocalService) {
+ this.internalAutoResponseLocalService = internalAutoResponseLocalService;
+ }
+
+ /**
+ * Returns the internal auto response persistence.
+ *
+ * @return the internal auto response persistence
+ */
+ public InternalAutoResponsePersistence getInternalAutoResponsePersistence() {
+ return internalAutoResponsePersistence;
+ }
+
+ /**
+ * Sets the internal auto response persistence.
+ *
+ * @param internalAutoResponsePersistence the internal auto response persistence
+ */
+ public void setInternalAutoResponsePersistence(
+ InternalAutoResponsePersistence internalAutoResponsePersistence) {
+ this.internalAutoResponsePersistence = internalAutoResponsePersistence;
+ }
+
+ /**
+ * Returns the internal content local service.
+ *
+ * @return the internal content local service
+ */
+ public InternalContentLocalService getInternalContentLocalService() {
+ return internalContentLocalService;
+ }
+
+ /**
+ * Sets the internal content local service.
+ *
+ * @param internalContentLocalService the internal content local service
+ */
+ public void setInternalContentLocalService(
+ InternalContentLocalService internalContentLocalService) {
+ this.internalContentLocalService = internalContentLocalService;
+ }
+
+ /**
+ * Returns the internal content persistence.
+ *
+ * @return the internal content persistence
+ */
+ public InternalContentPersistence getInternalContentPersistence() {
+ return internalContentPersistence;
+ }
+
+ /**
+ * Sets the internal content persistence.
+ *
+ * @param internalContentPersistence the internal content persistence
+ */
+ public void setInternalContentPersistence(
+ InternalContentPersistence internalContentPersistence) {
+ this.internalContentPersistence = internalContentPersistence;
+ }
+
+ /**
+ * Returns the internal folder message local service.
+ *
+ * @return the internal folder message local service
+ */
+ public InternalFolderMessageLocalService getInternalFolderMessageLocalService() {
+ return internalFolderMessageLocalService;
+ }
+
+ /**
+ * Sets the internal folder message local service.
+ *
+ * @param internalFolderMessageLocalService the internal folder message local service
+ */
+ public void setInternalFolderMessageLocalService(
+ InternalFolderMessageLocalService internalFolderMessageLocalService) {
+ this.internalFolderMessageLocalService = internalFolderMessageLocalService;
+ }
+
+ /**
+ * Returns the internal folder message persistence.
+ *
+ * @return the internal folder message persistence
+ */
+ public InternalFolderMessagePersistence getInternalFolderMessagePersistence() {
+ return internalFolderMessagePersistence;
+ }
+
+ /**
+ * Sets the internal folder message persistence.
+ *
+ * @param internalFolderMessagePersistence the internal folder message persistence
+ */
+ public void setInternalFolderMessagePersistence(
+ InternalFolderMessagePersistence internalFolderMessagePersistence) {
+ this.internalFolderMessagePersistence = internalFolderMessagePersistence;
+ }
+
+ /**
+ * Returns the internal message local service.
+ *
+ * @return the internal message local service
+ */
+ public InternalMessageLocalService getInternalMessageLocalService() {
+ return internalMessageLocalService;
+ }
+
+ /**
+ * Sets the internal message local service.
+ *
+ * @param internalMessageLocalService the internal message local service
+ */
+ public void setInternalMessageLocalService(
+ InternalMessageLocalService internalMessageLocalService) {
+ this.internalMessageLocalService = internalMessageLocalService;
+ }
+
+ /**
+ * Returns the internal message persistence.
+ *
+ * @return the internal message persistence
+ */
+ public InternalMessagePersistence getInternalMessagePersistence() {
+ return internalMessagePersistence;
+ }
+
+ /**
+ * Sets the internal message persistence.
+ *
+ * @param internalMessagePersistence the internal message persistence
+ */
+ public void setInternalMessagePersistence(
+ InternalMessagePersistence internalMessagePersistence) {
+ this.internalMessagePersistence = internalMessagePersistence;
+ }
+
+ /**
+ * Returns the internal message finder.
+ *
+ * @return the internal message finder
+ */
+ public InternalMessageFinder getInternalMessageFinder() {
+ return internalMessageFinder;
+ }
+
+ /**
+ * Sets the internal message finder.
+ *
+ * @param internalMessageFinder the internal message finder
+ */
+ public void setInternalMessageFinder(
+ InternalMessageFinder internalMessageFinder) {
+ this.internalMessageFinder = internalMessageFinder;
+ }
+
+ /**
+ * Returns the internal receiver local service.
+ *
+ * @return the internal receiver local service
+ */
+ public InternalReceiverLocalService getInternalReceiverLocalService() {
+ return internalReceiverLocalService;
+ }
+
+ /**
+ * Sets the internal receiver local service.
+ *
+ * @param internalReceiverLocalService the internal receiver local service
+ */
+ public void setInternalReceiverLocalService(
+ InternalReceiverLocalService internalReceiverLocalService) {
+ this.internalReceiverLocalService = internalReceiverLocalService;
+ }
+
+ /**
+ * Returns the internal receiver persistence.
+ *
+ * @return the internal receiver persistence
+ */
+ public InternalReceiverPersistence getInternalReceiverPersistence() {
+ return internalReceiverPersistence;
+ }
+
+ /**
+ * Sets the internal receiver persistence.
+ *
+ * @param internalReceiverPersistence the internal receiver persistence
+ */
+ public void setInternalReceiverPersistence(
+ InternalReceiverPersistence internalReceiverPersistence) {
+ this.internalReceiverPersistence = internalReceiverPersistence;
+ }
+
+ /**
+ * Returns the internal receivers local service.
+ *
+ * @return the internal receivers local service
+ */
+ public InternalReceiversLocalService getInternalReceiversLocalService() {
+ return internalReceiversLocalService;
+ }
+
+ /**
+ * Sets the internal receivers local service.
+ *
+ * @param internalReceiversLocalService the internal receivers local service
+ */
+ public void setInternalReceiversLocalService(
+ InternalReceiversLocalService internalReceiversLocalService) {
+ this.internalReceiversLocalService = internalReceiversLocalService;
+ }
+
+ /**
+ * Returns the internal receivers persistence.
+ *
+ * @return the internal receivers persistence
+ */
+ public InternalReceiversPersistence getInternalReceiversPersistence() {
+ return internalReceiversPersistence;
+ }
+
+ /**
+ * Sets the internal receivers persistence.
+ *
+ * @param internalReceiversPersistence the internal receivers persistence
+ */
+ public void setInternalReceiversPersistence(
+ InternalReceiversPersistence internalReceiversPersistence) {
+ this.internalReceiversPersistence = internalReceiversPersistence;
+ }
+
+ /**
+ * Returns the message local service.
+ *
+ * @return the message local service
+ */
+ public MessageLocalService getMessageLocalService() {
+ return messageLocalService;
+ }
+
+ /**
+ * Sets the message local service.
+ *
+ * @param messageLocalService the message local service
+ */
+ public void setMessageLocalService(MessageLocalService messageLocalService) {
+ this.messageLocalService = messageLocalService;
+ }
+
+ /**
+ * Returns the message persistence.
+ *
+ * @return the message persistence
+ */
+ public MessagePersistence getMessagePersistence() {
+ return messagePersistence;
+ }
+
+ /**
+ * Sets the message persistence.
+ *
+ * @param messagePersistence the message persistence
+ */
+ public void setMessagePersistence(MessagePersistence messagePersistence) {
+ this.messagePersistence = messagePersistence;
+ }
+
+ /**
+ * Returns the messagerie local service.
+ *
+ * @return the messagerie local service
+ */
+ public MessagerieLocalService getMessagerieLocalService() {
+ return messagerieLocalService;
+ }
+
+ /**
+ * Sets the messagerie local service.
+ *
+ * @param messagerieLocalService the messagerie local service
+ */
+ public void setMessagerieLocalService(
+ MessagerieLocalService messagerieLocalService) {
+ this.messagerieLocalService = messagerieLocalService;
+ }
+
+ /**
+ * Returns the rss chanel local service.
+ *
+ * @return the rss chanel local service
+ */
+ public RssChanelLocalService getRssChanelLocalService() {
+ return rssChanelLocalService;
+ }
+
+ /**
+ * Sets the rss chanel local service.
+ *
+ * @param rssChanelLocalService the rss chanel local service
+ */
+ public void setRssChanelLocalService(
+ RssChanelLocalService rssChanelLocalService) {
+ this.rssChanelLocalService = rssChanelLocalService;
+ }
+
+ /**
+ * Returns the rss chanel persistence.
+ *
+ * @return the rss chanel persistence
+ */
+ public RssChanelPersistence getRssChanelPersistence() {
+ return rssChanelPersistence;
+ }
+
+ /**
+ * Sets the rss chanel persistence.
+ *
+ * @param rssChanelPersistence the rss chanel persistence
+ */
+ public void setRssChanelPersistence(
+ RssChanelPersistence rssChanelPersistence) {
+ this.rssChanelPersistence = rssChanelPersistence;
+ }
+
+ /**
+ * Returns the rss item local service.
+ *
+ * @return the rss item local service
+ */
+ public RssItemLocalService getRssItemLocalService() {
+ return rssItemLocalService;
+ }
+
+ /**
+ * Sets the rss item local service.
+ *
+ * @param rssItemLocalService the rss item local service
+ */
+ public void setRssItemLocalService(RssItemLocalService rssItemLocalService) {
+ this.rssItemLocalService = rssItemLocalService;
+ }
+
+ /**
+ * Returns the rss item persistence.
+ *
+ * @return the rss item persistence
+ */
+ public RssItemPersistence getRssItemPersistence() {
+ return rssItemPersistence;
+ }
+
+ /**
+ * Sets the rss item persistence.
+ *
+ * @param rssItemPersistence the rss item persistence
+ */
+ public void setRssItemPersistence(RssItemPersistence rssItemPersistence) {
+ this.rssItemPersistence = rssItemPersistence;
+ }
+
+ /**
+ * Returns the counter local service.
+ *
+ * @return the counter local service
+ */
+ public CounterLocalService getCounterLocalService() {
+ return counterLocalService;
+ }
+
+ /**
+ * Sets the counter local service.
+ *
+ * @param counterLocalService the counter local service
+ */
+ public void setCounterLocalService(CounterLocalService counterLocalService) {
+ this.counterLocalService = counterLocalService;
+ }
+
+ /**
+ * Returns the resource local service.
+ *
+ * @return the resource local service
+ */
+ public ResourceLocalService getResourceLocalService() {
+ return resourceLocalService;
+ }
+
+ /**
+ * Sets the resource local service.
+ *
+ * @param resourceLocalService the resource local service
+ */
+ public void setResourceLocalService(
+ ResourceLocalService resourceLocalService) {
+ this.resourceLocalService = resourceLocalService;
+ }
+
+ /**
+ * Returns the resource remote service.
+ *
+ * @return the resource remote service
+ */
+ public ResourceService getResourceService() {
+ return resourceService;
+ }
+
+ /**
+ * Sets the resource remote service.
+ *
+ * @param resourceService the resource remote service
+ */
+ public void setResourceService(ResourceService resourceService) {
+ this.resourceService = resourceService;
+ }
+
+ /**
+ * Returns the resource persistence.
+ *
+ * @return the resource persistence
+ */
+ public ResourcePersistence getResourcePersistence() {
+ return resourcePersistence;
+ }
+
+ /**
+ * Sets the resource persistence.
+ *
+ * @param resourcePersistence the resource persistence
+ */
+ public void setResourcePersistence(ResourcePersistence resourcePersistence) {
+ this.resourcePersistence = resourcePersistence;
+ }
+
+ /**
+ * Returns the user local service.
+ *
+ * @return the user local service
+ */
+ public UserLocalService getUserLocalService() {
+ return userLocalService;
+ }
+
+ /**
+ * Sets the user local service.
+ *
+ * @param userLocalService the user local service
+ */
+ public void setUserLocalService(UserLocalService userLocalService) {
+ this.userLocalService = userLocalService;
+ }
+
+ /**
+ * Returns the user remote service.
+ *
+ * @return the user remote service
+ */
+ public UserService getUserService() {
+ return userService;
+ }
+
+ /**
+ * Sets the user remote service.
+ *
+ * @param userService the user remote service
+ */
+ public void setUserService(UserService userService) {
+ this.userService = userService;
+ }
+
+ /**
+ * Returns the user persistence.
+ *
+ * @return the user persistence
+ */
+ public UserPersistence getUserPersistence() {
+ return userPersistence;
+ }
+
+ /**
+ * Sets the user persistence.
+ *
+ * @param userPersistence the user persistence
+ */
+ public void setUserPersistence(UserPersistence userPersistence) {
+ this.userPersistence = userPersistence;
+ }
+
+ public void afterPropertiesSet() {
+ PersistedModelLocalServiceRegistryUtil.register("com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage",
+ internalFolderMessageLocalService);
+ }
+
+ public void destroy() {
+ PersistedModelLocalServiceRegistryUtil.unregister(
+ "com.pentila.entSavoie.internalMessaging.model.InternalFolderMessage");
+ }
+
+ /**
+ * Returns the Spring bean ID for this bean.
+ *
+ * @return the Spring bean ID for this bean
+ */
+ public String getBeanIdentifier() {
+ return _beanIdentifier;
+ }
+
+ /**
+ * Sets the Spring bean ID for this bean.
+ *
+ * @param beanIdentifier the Spring bean ID for this bean
+ */
+ public void setBeanIdentifier(String beanIdentifier) {
+ _beanIdentifier = beanIdentifier;
+ }
+
+ public Object invokeMethod(String name, String[] parameterTypes,
+ Object[] arguments) throws Throwable {
+ return _clpInvoker.invokeMethod(name, parameterTypes, arguments);
+ }
+
+ protected Class<?> getModelClass() {
+ return InternalFolderMessage.class;
+ }
+
+ protected String getModelClassName() {
+ return InternalFolderMessage.class.getName();
+ }
+
+ /**
+ * Performs an SQL query.
+ *
+ * @param sql the sql query
+ */
+ protected void runSQL(String sql) throws SystemException {
+ try {
+ DataSource dataSource = internalFolderMessagePersistence.getDataSource();
+
+ SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
+ sql, new int[0]);
+
+ sqlUpdate.update();
+ }
+ catch (Exception e) {
+ throw new SystemException(e);
+ }
+ }
+
+ @BeanReference(type = AccountLocalService.class)
+ protected AccountLocalService accountLocalService;
+ @BeanReference(type = AccountPersistence.class)
+ protected AccountPersistence accountPersistence;
+ @BeanReference(type = AttachmentLocalService.class)
+ protected AttachmentLocalService attachmentLocalService;
+ @BeanReference(type = AttachmentPersistence.class)
+ protected AttachmentPersistence attachmentPersistence;
+ @BeanReference(type = ExternalCommunicationRightsLocalService.class)
+ protected ExternalCommunicationRightsLocalService externalCommunicationRightsLocalService;
+ @BeanReference(type = ExternalCommunicationRightsPersistence.class)
+ protected ExternalCommunicationRightsPersistence externalCommunicationRightsPersistence;
+ @BeanReference(type = FolderLocalService.class)
+ protected FolderLocalService folderLocalService;
+ @BeanReference(type = FolderPersistence.class)
+ protected FolderPersistence folderPersistence;
+ @BeanReference(type = InternalAttachFileLocalService.class)
+ protected InternalAttachFileLocalService internalAttachFileLocalService;
+ @BeanReference(type = InternalAttachFilePersistence.class)
+ protected InternalAttachFilePersistence internalAttachFilePersistence;
+ @BeanReference(type = InternalAutoResponseLocalService.class)
+ protected InternalAutoResponseLocalService internalAutoResponseLocalService;
+ @BeanReference(type = InternalAutoResponsePersistence.class)
+ protected InternalAutoResponsePersistence internalAutoResponsePersistence;
+ @BeanReference(type = InternalContentLocalService.class)
+ protected InternalContentLocalService internalContentLocalService;
+ @BeanReference(type = InternalContentPersistence.class)
+ protected InternalContentPersistence internalContentPersistence;
+ @BeanReference(type = InternalFolderMessageLocalService.class)
+ protected InternalFolderMessageLocalService internalFolderMessageLocalService;
+ @BeanReference(type = InternalFolderMessagePersistence.class)
+ protected InternalFolderMessagePersistence internalFolderMessagePersistence;
+ @BeanReference(type = InternalMessageLocalService.class)
+ protected InternalMessageLocalService internalMessageLocalService;
+ @BeanReference(type = InternalMessagePersistence.class)
+ protected InternalMessagePersistence internalMessagePersistence;
+ @BeanReference(type = InternalMessageFinder.class)
+ protected InternalMessageFinder internalMessageFinder;
+ @BeanReference(type = InternalReceiverLocalService.class)
+ protected InternalReceiverLocalService internalReceiverLocalService;
+ @BeanReference(type = InternalReceiverPersistence.class)
+ protected InternalReceiverPersistence internalReceiverPersistence;
+ @BeanReference(type = InternalReceiversLocalService.class)
+ protected InternalReceiversLocalService internalReceiversLocalService;
+ @BeanReference(type = InternalReceiversPersistence.class)
+ protected InternalReceiversPersistence internalReceiversPersistence;
+ @BeanReference(type = MessageLocalService.class)
+ protected MessageLocalService messageLocalService;
+ @BeanReference(type = MessagePersistence.class)
+ protected MessagePersistence messagePersistence;
+ @BeanReference(type = MessagerieLocalService.class)
+ protected MessagerieLocalService messagerieLocalService;
+ @BeanReference(type = RssChanelLocalService.class)
+ protected RssChanelLocalService rssChanelLocalService;
+ @BeanReference(type = RssChanelPersistence.class)
+ protected RssChanelPersistence rssChanelPersistence;
+ @BeanReference(type = RssItemLocalService.class)
+ protected RssItemLocalService rssItemLocalService;
+ @BeanReference(type = RssItemPersistence.class)
+ protected RssItemPersistence rssItemPersistence;
+ @BeanReference(type = CounterLocalService.class)
+ protected CounterLocalService counterLocalService;
+ @BeanReference(type = ResourceLocalService.class)
+ protected ResourceLocalService resourceLocalService;
+ @BeanReference(type = ResourceService.class)
+ protected ResourceService resourceService;
+ @BeanReference(type = ResourcePersistence.class)
+ protected ResourcePersistence resourcePersistence;
+ @BeanReference(type = UserLocalService.class)
+ protected UserLocalService userLocalService;
+ @BeanReference(type = UserService.class)
+ protected UserService userService;
+ @BeanReference(type = UserPersistence.class)
+ protected UserPersistence userPersistence;
+ private String _beanIdentifier;
+ private InternalFolderMessageLocalServiceClpInvoker _clpInvoker = new InternalFolderMessageLocalServiceClpInvoker();
+}
\ No newline at end of file