--- /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.agenda.service;
+
+import com.liferay.portal.service.ServiceWrapper;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link RessourceLocalService}.
+ * </p>
+ *
+ * @author Igor Barma
+ * @see RessourceLocalService
+ * @generated
+ */
+public class RessourceLocalServiceWrapper implements RessourceLocalService,
+ ServiceWrapper<RessourceLocalService> {
+ public RessourceLocalServiceWrapper(
+ RessourceLocalService ressourceLocalService) {
+ _ressourceLocalService = ressourceLocalService;
+ }
+
+ /**
+ * Adds the ressource to the database. Also notifies the appropriate model listeners.
+ *
+ * @param ressource the ressource
+ * @return the ressource that was added
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource addRessource(
+ com.pentila.entSavoie.agenda.model.Ressource ressource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.addRessource(ressource);
+ }
+
+ /**
+ * Creates a new ressource with the primary key. Does not add the ressource to the database.
+ *
+ * @param idRessource the primary key for the new ressource
+ * @return the new ressource
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource createRessource(
+ long idRessource) {
+ return _ressourceLocalService.createRessource(idRessource);
+ }
+
+ /**
+ * Deletes the ressource with the primary key from the database. Also notifies the appropriate model listeners.
+ *
+ * @param idRessource the primary key of the ressource
+ * @return the ressource that was removed
+ * @throws PortalException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource deleteRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.deleteRessource(idRessource);
+ }
+
+ /**
+ * Deletes the ressource from the database. Also notifies the appropriate model listeners.
+ *
+ * @param ressource the ressource
+ * @return the ressource that was removed
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource deleteRessource(
+ com.pentila.entSavoie.agenda.model.Ressource ressource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.deleteRessource(ressource);
+ }
+
+ public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
+ return _ressourceLocalService.dynamicQuery();
+ }
+
+ /**
+ * 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 java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.dynamicQuery(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 java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
+ int end) throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.dynamicQuery(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 java.util.List dynamicQuery(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
+ int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.dynamicQuery(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(
+ com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.dynamicQueryCount(dynamicQuery);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource fetchRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.fetchRessource(idRessource);
+ }
+
+ /**
+ * Returns the ressource with the primary key.
+ *
+ * @param idRessource the primary key of the ressource
+ * @return the ressource
+ * @throws PortalException if a ressource with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource getRessource(
+ long idRessource)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getRessource(idRessource);
+ }
+
+ public com.liferay.portal.model.PersistedModel getPersistedModel(
+ java.io.Serializable primaryKeyObj)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getPersistedModel(primaryKeyObj);
+ }
+
+ /**
+ * Returns a range of all the ressources.
+ *
+ * <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 ressources
+ * @param end the upper bound of the range of ressources (not inclusive)
+ * @return the range of ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessources(
+ int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getRessources(start, end);
+ }
+
+ /**
+ * Returns the number of ressources.
+ *
+ * @return the number of ressources
+ * @throws SystemException if a system exception occurred
+ */
+ public int getRessourcesCount()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getRessourcesCount();
+ }
+
+ /**
+ * Updates the ressource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
+ *
+ * @param ressource the ressource
+ * @return the ressource that was updated
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource updateRessource(
+ com.pentila.entSavoie.agenda.model.Ressource ressource)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.updateRessource(ressource);
+ }
+
+ /**
+ * Updates the ressource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
+ *
+ * @param ressource the ressource
+ * @param merge whether to merge the ressource 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 ressource that was updated
+ * @throws SystemException if a system exception occurred
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource updateRessource(
+ com.pentila.entSavoie.agenda.model.Ressource ressource, boolean merge)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.updateRessource(ressource, merge);
+ }
+
+ /**
+ * Returns the Spring bean ID for this bean.
+ *
+ * @return the Spring bean ID for this bean
+ */
+ public java.lang.String getBeanIdentifier() {
+ return _ressourceLocalService.getBeanIdentifier();
+ }
+
+ /**
+ * Sets the Spring bean ID for this bean.
+ *
+ * @param beanIdentifier the Spring bean ID for this bean
+ */
+ public void setBeanIdentifier(java.lang.String beanIdentifier) {
+ _ressourceLocalService.setBeanIdentifier(beanIdentifier);
+ }
+
+ public java.lang.Object invokeMethod(java.lang.String name,
+ java.lang.String[] parameterTypes, java.lang.Object[] arguments)
+ throws java.lang.Throwable {
+ return _ressourceLocalService.invokeMethod(name, parameterTypes,
+ arguments);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource addRessource()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.addRessource();
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource addRessource(
+ java.lang.String ressourceName, long etabId, long creatorId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.addRessource(ressourceName, etabId,
+ creatorId);
+ }
+
+ public boolean createCDT(com.liferay.portal.model.User user,
+ boolean isEleve, boolean isParent, boolean isEnseignant,
+ boolean isPrincipal, com.liferay.portal.kernel.json.JSONArray child) {
+ return _ressourceLocalService.createCDT(user, isEleve, isParent,
+ isEnseignant, isPrincipal, child);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource addRessource(
+ java.lang.String ressourceName, long etabId, long creatorId, int kind,
+ long targetId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.addRessource(ressourceName, etabId,
+ creatorId, kind, targetId);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource getOrCreatePersonalRessource(
+ long creatorId) {
+ return _ressourceLocalService.getOrCreatePersonalRessource(creatorId);
+ }
+
+ public com.pentila.entSavoie.agenda.model.Ressource getPersonalRessource(
+ long creatorId) {
+ return _ressourceLocalService.getPersonalRessource(creatorId);
+ }
+
+ /**
+ * Delete a ressource all all its instances (shared via role or shared via user list)
+ */
+ public boolean deleteRessourceAndDep(
+ com.pentila.entSavoie.agenda.model.Ressource ressource)
+ throws com.liferay.portal.kernel.exception.PortalException,
+ com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.deleteRessourceAndDep(ressource);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByScopeTypeKindForcePubli(
+ int scope, int ressourceType, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getRessourcesByScopeTypeKindForcePubli(scope,
+ ressourceType, kind, forcePubli);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByScopeTypeEtabIdKindForcePubli(
+ int scope, int ressourceType, long etabId, int kind, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getRessourcesByScopeTypeEtabIdKindForcePubli(scope,
+ ressourceType, etabId, kind, forcePubli);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByScopeTypeForcePubli(
+ int scope, int ressourceType, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getRessourcesByScopeTypeForcePubli(scope,
+ ressourceType, forcePubli);
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByScopeTypeEtabIdForcePubli(
+ int scope, int ressourceType, long etabId, boolean forcePubli)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getRessourcesByScopeTypeEtabIdForcePubli(scope,
+ ressourceType, etabId, forcePubli);
+ }
+
+ /**
+ * Get all duplicate entry and fill a map to manage resource per user
+ *
+ * @return a map where the key identify the user by it's id and list of his ressource as valu
+ */
+ public java.util.Map<java.lang.Long, java.util.List<com.pentila.entSavoie.agenda.model.Ressource>> getRessourcesWhereUserHasMultiplePersonnalRessource() {
+ return _ressourceLocalService.getRessourcesWhereUserHasMultiplePersonnalRessource();
+ }
+
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getRessourcesByEtabIdName(
+ java.lang.Long etabId, java.lang.String ressourceName)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return _ressourceLocalService.getRessourcesByEtabIdName(etabId,
+ ressourceName);
+ }
+
+ /**
+ * Returns the agenda ressource of an organization
+ *
+ * @param organization
+ * @return
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource getOrCreateOrganizationRessource(
+ long companyId, com.liferay.portal.model.Organization org) {
+ return _ressourceLocalService.getOrCreateOrganizationRessource(companyId,
+ org);
+ }
+
+ /**
+ * Returns the personal CDT ressource for given user
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource getOrCreateCdtRessource(
+ long userId) {
+ return _ressourceLocalService.getOrCreateCdtRessource(userId);
+ }
+
+ /**
+ * Returns the list of CDT ressources for given userId
+ *
+ * @param userId
+ * @return
+ */
+ public java.util.List<com.pentila.entSavoie.agenda.model.Ressource> getUserCdtRessources(
+ long userId) {
+ return _ressourceLocalService.getUserCdtRessources(userId);
+ }
+
+ /**
+ * Returns the parent CDT ressource for given child
+ *
+ * @param userId
+ * @return
+ */
+ public com.pentila.entSavoie.agenda.model.Ressource getParentCdtRessource(
+ long parentUserId, long childUserId) {
+ return _ressourceLocalService.getParentCdtRessource(parentUserId,
+ childUserId);
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedService}
+ */
+ public RessourceLocalService getWrappedRessourceLocalService() {
+ return _ressourceLocalService;
+ }
+
+ /**
+ * @deprecated Renamed to {@link #setWrappedService}
+ */
+ public void setWrappedRessourceLocalService(
+ RessourceLocalService ressourceLocalService) {
+ _ressourceLocalService = ressourceLocalService;
+ }
+
+ public RessourceLocalService getWrappedService() {
+ return _ressourceLocalService;
+ }
+
+ public void setWrappedService(RessourceLocalService ressourceLocalService) {
+ _ressourceLocalService = ressourceLocalService;
+ }
+
+ private RessourceLocalService _ressourceLocalService;
+}
\ No newline at end of file