001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            public boolean isNew();
115    
116            public void setNew(boolean n);
117    
118            public boolean isCachedModel();
119    
120            public void setCachedModel(boolean cachedModel);
121    
122            public boolean isEscapedModel();
123    
124            public void setEscapedModel(boolean escapedModel);
125    
126            public Serializable getPrimaryKeyObj();
127    
128            public ExpandoBridge getExpandoBridge();
129    
130            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
131    
132            public Object clone();
133    
134            public int compareTo(ResourceAction resourceAction);
135    
136            public int hashCode();
137    
138            public ResourceAction toEscapedModel();
139    
140            public String toString();
141    
142            public String toXmlString();
143    }