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 018 /** 019 * <p> 020 * This interface is a model that represents the PluginSetting table in the 021 * database. 022 * </p> 023 * 024 * <p> 025 * Customize {@link com.liferay.portal.model.impl.PluginSettingImpl} and rerun the 026 * ServiceBuilder to generate the new methods. 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see PluginSettingModel 031 * @see com.liferay.portal.model.impl.PluginSettingImpl 032 * @see com.liferay.portal.model.impl.PluginSettingModelImpl 033 * @generated 034 */ 035 public interface PluginSetting extends PluginSettingModel { 036 /** 037 * Adds a role to the list of roles. 038 */ 039 public void addRole(java.lang.String role); 040 041 /** 042 * Sets a string of ordered comma delimited plugin ids. 043 */ 044 public void setRoles(java.lang.String roles); 045 046 /** 047 * Gets an array of required roles of the plugin. 048 * 049 * @return an array of required roles of the plugin 050 */ 051 public java.lang.String[] getRolesArray(); 052 053 /** 054 * Sets an array of required roles of the plugin. 055 */ 056 public void setRolesArray(java.lang.String[] rolesArray); 057 058 /** 059 * Returns <code>true</code> if the plugin has a role with the specified 060 name. 061 * 062 * @return <code>true</code> if the plugin has a role with the specified 063 name 064 */ 065 public boolean hasRoleWithName(java.lang.String roleName); 066 067 /** 068 * Returns <code>true</code> if the user has permission to use this plugin 069 * 070 * @return <code>true</code> if the user has permission to use this plugin 071 */ 072 public boolean hasPermission(long userId); 073 }