001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import com.liferay.portal.kernel.annotation.AutoEscape;
018    import com.liferay.portal.service.ServiceContext;
019    
020    import com.liferay.portlet.expando.model.ExpandoBridge;
021    
022    import java.io.Serializable;
023    
024    /**
025     * The base model interface for the ResourceAction service. Represents a row in the "ResourceAction" database table, with each column mapped to a property of this class.
026     *
027     * <p>
028     * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.ResourceActionModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portal.model.impl.ResourceActionImpl}.
029     * </p>
030     *
031     * <p>
032     * Never modify or reference this interface directly. All methods that expect a resource action model instance should use the {@link ResourceAction} interface instead.
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see ResourceAction
037     * @see com.liferay.portal.model.impl.ResourceActionImpl
038     * @see com.liferay.portal.model.impl.ResourceActionModelImpl
039     * @generated
040     */
041    public interface ResourceActionModel extends BaseModel<ResourceAction> {
042            /**
043             * Gets the primary key of this resource action.
044             *
045             * @return the primary key of this resource action
046             */
047            public long getPrimaryKey();
048    
049            /**
050             * Sets the primary key of this resource action
051             *
052             * @param pk the primary key of this resource action
053             */
054            public void setPrimaryKey(long pk);
055    
056            /**
057             * Gets the resource action id of this resource action.
058             *
059             * @return the resource action id of this resource action
060             */
061            public long getResourceActionId();
062    
063            /**
064             * Sets the resource action id of this resource action.
065             *
066             * @param resourceActionId the resource action id of this resource action
067             */
068            public void setResourceActionId(long resourceActionId);
069    
070            /**
071             * Gets the name of this resource action.
072             *
073             * @return the name of this resource action
074             */
075            @AutoEscape
076            public String getName();
077    
078            /**
079             * Sets the name of this resource action.
080             *
081             * @param name the name of this resource action
082             */
083            public void setName(String name);
084    
085            /**
086             * Gets the action id of this resource action.
087             *
088             * @return the action id of this resource action
089             */
090            @AutoEscape
091            public String getActionId();
092    
093            /**
094             * Sets the action id of this resource action.
095             *
096             * @param actionId the action id of this resource action
097             */
098            public void setActionId(String actionId);
099    
100            /**
101             * Gets the bitwise value of this resource action.
102             *
103             * @return the bitwise value of this resource action
104             */
105            public long getBitwiseValue();
106    
107            /**
108             * Sets the bitwise value of this resource action.
109             *
110             * @param bitwiseValue the bitwise value of this resource action
111             */
112            public void setBitwiseValue(long bitwiseValue);
113    
114            /**
115             * Gets a copy of this resource action as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
116             *
117             * @return the escaped model instance
118             * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
119             */
120            public ResourceAction toEscapedModel();
121    
122            public boolean isNew();
123    
124            public void setNew(boolean n);
125    
126            public boolean isCachedModel();
127    
128            public void setCachedModel(boolean cachedModel);
129    
130            public boolean isEscapedModel();
131    
132            public void setEscapedModel(boolean escapedModel);
133    
134            public Serializable getPrimaryKeyObj();
135    
136            public ExpandoBridge getExpandoBridge();
137    
138            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
139    
140            public Object clone();
141    
142            public int compareTo(ResourceAction resourceAction);
143    
144            public int hashCode();
145    
146            public String toString();
147    
148            public String toXmlString();
149    }