--- /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.gestionMenus.model;
+
+import com.liferay.portal.model.ModelWrapper;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * <p>
+ * This class is a wrapper for {@link EntityMenu}.
+ * </p>
+ *
+ * @author DIMIER Cedric et TARDY Camille
+ * @see EntityMenu
+ * @generated
+ */
+public class EntityMenuWrapper implements EntityMenu, ModelWrapper<EntityMenu> {
+ public EntityMenuWrapper(EntityMenu entityMenu) {
+ _entityMenu = entityMenu;
+ }
+
+ public Class<?> getModelClass() {
+ return EntityMenu.class;
+ }
+
+ public String getModelClassName() {
+ return EntityMenu.class.getName();
+ }
+
+ public Map<String, Object> getModelAttributes() {
+ Map<String, Object> attributes = new HashMap<String, Object>();
+
+ attributes.put("entityId", getEntityId());
+ attributes.put("etabId", getEtabId());
+ attributes.put("entityName", getEntityName());
+ attributes.put("appRoleId", getAppRoleId());
+ attributes.put("nodePath", getNodePath());
+ attributes.put("isLeaf", getIsLeaf());
+ attributes.put("orderEntity", getOrderEntity());
+ attributes.put("styleEntity", getStyleEntity());
+ attributes.put("imageId", getImageId());
+ attributes.put("category", getCategory());
+ attributes.put("orderEntityFullScreen", getOrderEntityFullScreen());
+ attributes.put("defaultIconClass", getDefaultIconClass());
+
+ return attributes;
+ }
+
+ public void setModelAttributes(Map<String, Object> attributes) {
+ Long entityId = (Long)attributes.get("entityId");
+
+ if (entityId != null) {
+ setEntityId(entityId);
+ }
+
+ Long etabId = (Long)attributes.get("etabId");
+
+ if (etabId != null) {
+ setEtabId(etabId);
+ }
+
+ String entityName = (String)attributes.get("entityName");
+
+ if (entityName != null) {
+ setEntityName(entityName);
+ }
+
+ Long appRoleId = (Long)attributes.get("appRoleId");
+
+ if (appRoleId != null) {
+ setAppRoleId(appRoleId);
+ }
+
+ String nodePath = (String)attributes.get("nodePath");
+
+ if (nodePath != null) {
+ setNodePath(nodePath);
+ }
+
+ Boolean isLeaf = (Boolean)attributes.get("isLeaf");
+
+ if (isLeaf != null) {
+ setIsLeaf(isLeaf);
+ }
+
+ Integer orderEntity = (Integer)attributes.get("orderEntity");
+
+ if (orderEntity != null) {
+ setOrderEntity(orderEntity);
+ }
+
+ String styleEntity = (String)attributes.get("styleEntity");
+
+ if (styleEntity != null) {
+ setStyleEntity(styleEntity);
+ }
+
+ Long imageId = (Long)attributes.get("imageId");
+
+ if (imageId != null) {
+ setImageId(imageId);
+ }
+
+ String category = (String)attributes.get("category");
+
+ if (category != null) {
+ setCategory(category);
+ }
+
+ Integer orderEntityFullScreen = (Integer)attributes.get(
+ "orderEntityFullScreen");
+
+ if (orderEntityFullScreen != null) {
+ setOrderEntityFullScreen(orderEntityFullScreen);
+ }
+
+ String defaultIconClass = (String)attributes.get("defaultIconClass");
+
+ if (defaultIconClass != null) {
+ setDefaultIconClass(defaultIconClass);
+ }
+ }
+
+ /**
+ * Returns the primary key of this entity menu.
+ *
+ * @return the primary key of this entity menu
+ */
+ public long getPrimaryKey() {
+ return _entityMenu.getPrimaryKey();
+ }
+
+ /**
+ * Sets the primary key of this entity menu.
+ *
+ * @param primaryKey the primary key of this entity menu
+ */
+ public void setPrimaryKey(long primaryKey) {
+ _entityMenu.setPrimaryKey(primaryKey);
+ }
+
+ /**
+ * Returns the entity ID of this entity menu.
+ *
+ * @return the entity ID of this entity menu
+ */
+ public long getEntityId() {
+ return _entityMenu.getEntityId();
+ }
+
+ /**
+ * Sets the entity ID of this entity menu.
+ *
+ * @param entityId the entity ID of this entity menu
+ */
+ public void setEntityId(long entityId) {
+ _entityMenu.setEntityId(entityId);
+ }
+
+ /**
+ * Returns the etab ID of this entity menu.
+ *
+ * @return the etab ID of this entity menu
+ */
+ public long getEtabId() {
+ return _entityMenu.getEtabId();
+ }
+
+ /**
+ * Sets the etab ID of this entity menu.
+ *
+ * @param etabId the etab ID of this entity menu
+ */
+ public void setEtabId(long etabId) {
+ _entityMenu.setEtabId(etabId);
+ }
+
+ /**
+ * Returns the entity name of this entity menu.
+ *
+ * @return the entity name of this entity menu
+ */
+ public java.lang.String getEntityName() {
+ return _entityMenu.getEntityName();
+ }
+
+ /**
+ * Sets the entity name of this entity menu.
+ *
+ * @param entityName the entity name of this entity menu
+ */
+ public void setEntityName(java.lang.String entityName) {
+ _entityMenu.setEntityName(entityName);
+ }
+
+ /**
+ * Returns the app role ID of this entity menu.
+ *
+ * @return the app role ID of this entity menu
+ */
+ public long getAppRoleId() {
+ return _entityMenu.getAppRoleId();
+ }
+
+ /**
+ * Sets the app role ID of this entity menu.
+ *
+ * @param appRoleId the app role ID of this entity menu
+ */
+ public void setAppRoleId(long appRoleId) {
+ _entityMenu.setAppRoleId(appRoleId);
+ }
+
+ /**
+ * Returns the node path of this entity menu.
+ *
+ * @return the node path of this entity menu
+ */
+ public java.lang.String getNodePath() {
+ return _entityMenu.getNodePath();
+ }
+
+ /**
+ * Sets the node path of this entity menu.
+ *
+ * @param nodePath the node path of this entity menu
+ */
+ public void setNodePath(java.lang.String nodePath) {
+ _entityMenu.setNodePath(nodePath);
+ }
+
+ /**
+ * Returns the is leaf of this entity menu.
+ *
+ * @return the is leaf of this entity menu
+ */
+ public boolean getIsLeaf() {
+ return _entityMenu.getIsLeaf();
+ }
+
+ /**
+ * Returns <code>true</code> if this entity menu is is leaf.
+ *
+ * @return <code>true</code> if this entity menu is is leaf; <code>false</code> otherwise
+ */
+ public boolean isIsLeaf() {
+ return _entityMenu.isIsLeaf();
+ }
+
+ /**
+ * Sets whether this entity menu is is leaf.
+ *
+ * @param isLeaf the is leaf of this entity menu
+ */
+ public void setIsLeaf(boolean isLeaf) {
+ _entityMenu.setIsLeaf(isLeaf);
+ }
+
+ /**
+ * Returns the order entity of this entity menu.
+ *
+ * @return the order entity of this entity menu
+ */
+ public int getOrderEntity() {
+ return _entityMenu.getOrderEntity();
+ }
+
+ /**
+ * Sets the order entity of this entity menu.
+ *
+ * @param orderEntity the order entity of this entity menu
+ */
+ public void setOrderEntity(int orderEntity) {
+ _entityMenu.setOrderEntity(orderEntity);
+ }
+
+ /**
+ * Returns the style entity of this entity menu.
+ *
+ * @return the style entity of this entity menu
+ */
+ public java.lang.String getStyleEntity() {
+ return _entityMenu.getStyleEntity();
+ }
+
+ /**
+ * Sets the style entity of this entity menu.
+ *
+ * @param styleEntity the style entity of this entity menu
+ */
+ public void setStyleEntity(java.lang.String styleEntity) {
+ _entityMenu.setStyleEntity(styleEntity);
+ }
+
+ /**
+ * Returns the image ID of this entity menu.
+ *
+ * @return the image ID of this entity menu
+ */
+ public long getImageId() {
+ return _entityMenu.getImageId();
+ }
+
+ /**
+ * Sets the image ID of this entity menu.
+ *
+ * @param imageId the image ID of this entity menu
+ */
+ public void setImageId(long imageId) {
+ _entityMenu.setImageId(imageId);
+ }
+
+ /**
+ * Returns the category of this entity menu.
+ *
+ * @return the category of this entity menu
+ */
+ public java.lang.String getCategory() {
+ return _entityMenu.getCategory();
+ }
+
+ /**
+ * Sets the category of this entity menu.
+ *
+ * @param category the category of this entity menu
+ */
+ public void setCategory(java.lang.String category) {
+ _entityMenu.setCategory(category);
+ }
+
+ /**
+ * Returns the order entity full screen of this entity menu.
+ *
+ * @return the order entity full screen of this entity menu
+ */
+ public int getOrderEntityFullScreen() {
+ return _entityMenu.getOrderEntityFullScreen();
+ }
+
+ /**
+ * Sets the order entity full screen of this entity menu.
+ *
+ * @param orderEntityFullScreen the order entity full screen of this entity menu
+ */
+ public void setOrderEntityFullScreen(int orderEntityFullScreen) {
+ _entityMenu.setOrderEntityFullScreen(orderEntityFullScreen);
+ }
+
+ /**
+ * Returns the default icon class of this entity menu.
+ *
+ * @return the default icon class of this entity menu
+ */
+ public java.lang.String getDefaultIconClass() {
+ return _entityMenu.getDefaultIconClass();
+ }
+
+ /**
+ * Sets the default icon class of this entity menu.
+ *
+ * @param defaultIconClass the default icon class of this entity menu
+ */
+ public void setDefaultIconClass(java.lang.String defaultIconClass) {
+ _entityMenu.setDefaultIconClass(defaultIconClass);
+ }
+
+ public boolean isNew() {
+ return _entityMenu.isNew();
+ }
+
+ public void setNew(boolean n) {
+ _entityMenu.setNew(n);
+ }
+
+ public boolean isCachedModel() {
+ return _entityMenu.isCachedModel();
+ }
+
+ public void setCachedModel(boolean cachedModel) {
+ _entityMenu.setCachedModel(cachedModel);
+ }
+
+ public boolean isEscapedModel() {
+ return _entityMenu.isEscapedModel();
+ }
+
+ public java.io.Serializable getPrimaryKeyObj() {
+ return _entityMenu.getPrimaryKeyObj();
+ }
+
+ public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
+ _entityMenu.setPrimaryKeyObj(primaryKeyObj);
+ }
+
+ public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
+ return _entityMenu.getExpandoBridge();
+ }
+
+ public void setExpandoBridgeAttributes(
+ com.liferay.portal.service.ServiceContext serviceContext) {
+ _entityMenu.setExpandoBridgeAttributes(serviceContext);
+ }
+
+ @Override
+ public java.lang.Object clone() {
+ return new EntityMenuWrapper((EntityMenu)_entityMenu.clone());
+ }
+
+ public int compareTo(
+ com.pentila.entSavoie.gestionMenus.model.EntityMenu entityMenu) {
+ return _entityMenu.compareTo(entityMenu);
+ }
+
+ @Override
+ public int hashCode() {
+ return _entityMenu.hashCode();
+ }
+
+ public com.liferay.portal.model.CacheModel<com.pentila.entSavoie.gestionMenus.model.EntityMenu> toCacheModel() {
+ return _entityMenu.toCacheModel();
+ }
+
+ public com.pentila.entSavoie.gestionMenus.model.EntityMenu toEscapedModel() {
+ return new EntityMenuWrapper(_entityMenu.toEscapedModel());
+ }
+
+ @Override
+ public java.lang.String toString() {
+ return _entityMenu.toString();
+ }
+
+ public java.lang.String toXmlString() {
+ return _entityMenu.toXmlString();
+ }
+
+ public void persist()
+ throws com.liferay.portal.kernel.exception.SystemException {
+ _entityMenu.persist();
+ }
+
+ /**
+ * @deprecated Renamed to {@link #getWrappedModel}
+ */
+ public EntityMenu getWrappedEntityMenu() {
+ return _entityMenu;
+ }
+
+ public EntityMenu getWrappedModel() {
+ return _entityMenu;
+ }
+
+ public void resetOriginalValues() {
+ _entityMenu.resetOriginalValues();
+ }
+
+ private EntityMenu _entityMenu;
+}
\ No newline at end of file