Class Cms2IxPolicyManager
- java.lang.Object
-
- de.uplanet.lucy.server.cms2.groovy.security.Cms2IxPolicyManager
-
@Scriptable public final class Cms2IxPolicyManager extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cms2IxPolicyManager
getInstance()
List<String>
getPrincipalsWithReadPermission(String p_strPermissionName, de.uplanet.jdbc.JdbcConnection p_conn)
Gets the principal GUIDs permitted to read a CMS 2 page.void
setReadPermission(String p_strPermissionName, String p_strMenuGuid, de.uplanet.jdbc.JdbcConnection p_conn, List<String> p_principals)
Sets the CMS2 read permissions for the given principals.
-
-
-
Method Detail
-
getInstance
public static Cms2IxPolicyManager getInstance()
- Returns:
- The instance of the policy manager.
-
getPrincipalsWithReadPermission
public List<String> getPrincipalsWithReadPermission(String p_strPermissionName, de.uplanet.jdbc.JdbcConnection p_conn) throws Exception
Gets the principal GUIDs permitted to read a CMS 2 page.- Parameters:
p_strPermissionName
- The name of the permission.p_conn
- Connection to be used.- Returns:
- List of principal GUIDs.
- Throws:
SQLException
- Thrown if reading the principals failed.Exception
-
setReadPermission
public void setReadPermission(String p_strPermissionName, String p_strMenuGuid, de.uplanet.jdbc.JdbcConnection p_conn, List<String> p_principals) throws Exception
Sets the CMS2 read permissions for the given principals.- Parameters:
p_strPermissionName
- CMS2 page permission name.p_strMenuGuid
- GUID of the related menu node (ornull
if the menu node does not exist).p_conn
- Connection to use.p_principals
- GUIDs of the principals.- Throws:
Exception
- Thrown if reading the permissions failed.
-
-