001    /**
002     * Copyright (c) 2000-2010 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    import java.util.Locale;
025    import java.util.Map;
026    
027    /**
028     * <p>
029     * This interface is a model that represents the Role_ table in the
030     * database.
031     * </p>
032     *
033     * @author    Brian Wing Shun Chan
034     * @see       Role
035     * @see       com.liferay.portal.model.impl.RoleImpl
036     * @see       com.liferay.portal.model.impl.RoleModelImpl
037     * @generated
038     */
039    public interface RoleModel extends BaseModel<Role> {
040            public long getPrimaryKey();
041    
042            public void setPrimaryKey(long pk);
043    
044            public long getRoleId();
045    
046            public void setRoleId(long roleId);
047    
048            public long getCompanyId();
049    
050            public void setCompanyId(long companyId);
051    
052            public String getClassName();
053    
054            public long getClassNameId();
055    
056            public void setClassNameId(long classNameId);
057    
058            public long getClassPK();
059    
060            public void setClassPK(long classPK);
061    
062            @AutoEscape
063            public String getName();
064    
065            public void setName(String name);
066    
067            public String getTitle();
068    
069            public String getTitle(Locale locale);
070    
071            public String getTitle(Locale locale, boolean useDefault);
072    
073            public String getTitle(String languageId);
074    
075            public String getTitle(String languageId, boolean useDefault);
076    
077            public Map<Locale, String> getTitleMap();
078    
079            public void setTitle(String title);
080    
081            public void setTitle(Locale locale, String title);
082    
083            public void setTitleMap(Map<Locale, String> titleMap);
084    
085            @AutoEscape
086            public String getDescription();
087    
088            public void setDescription(String description);
089    
090            public int getType();
091    
092            public void setType(int type);
093    
094            @AutoEscape
095            public String getSubtype();
096    
097            public void setSubtype(String subtype);
098    
099            public Role toEscapedModel();
100    
101            public boolean isNew();
102    
103            public void setNew(boolean n);
104    
105            public boolean isCachedModel();
106    
107            public void setCachedModel(boolean cachedModel);
108    
109            public boolean isEscapedModel();
110    
111            public void setEscapedModel(boolean escapedModel);
112    
113            public Serializable getPrimaryKeyObj();
114    
115            public ExpandoBridge getExpandoBridge();
116    
117            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
118    
119            public Object clone();
120    
121            public int compareTo(Role role);
122    
123            public int hashCode();
124    
125            public String toString();
126    
127            public String toXmlString();
128    }