1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  
18  /**
19   * <a href="PluginSetting.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This interface is a model that represents the PluginSetting table in the
28   * database.
29   * </p>
30   *
31   * <p>
32   * Customize {@link com.liferay.portal.model.impl.PluginSettingImpl} and rerun the
33   * ServiceBuilder to generate the new methods.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       PluginSettingModel
38   * @see       com.liferay.portal.model.impl.PluginSettingImpl
39   * @see       com.liferay.portal.model.impl.PluginSettingModelImpl
40   * @generated
41   */
42  public interface PluginSetting extends PluginSettingModel {
43      /**
44      * Adds a role to the list of roles.
45      */
46      public void addRole(java.lang.String role);
47  
48      /**
49      * Sets a string of ordered comma delimited plugin ids.
50      */
51      public void setRoles(java.lang.String roles);
52  
53      /**
54      * Gets an array of required roles of the plugin.
55      *
56      * @return an array of required roles of the plugin
57      */
58      public java.lang.String[] getRolesArray();
59  
60      /**
61      * Sets an array of required roles of the plugin.
62      */
63      public void setRolesArray(java.lang.String[] rolesArray);
64  
65      /**
66      * Returns true if the plugin has a role with the specified name.
67      *
68      * @return true if the plugin has a role with the specified name
69      */
70      public boolean hasRoleWithName(java.lang.String roleName);
71  
72      /**
73      * Returns true if the user has permission to use this plugin
74      *
75      * @return true if the user has permission to use this plugin
76      */
77      public boolean hasPermission(long userId);
78  }