de.uplanet.lucy.server.auxiliaries.menu
Class SaucMenuPermission

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.menu.SaucMenuPermission

@VelocityCallable(value="singleton")
public class SaucMenuPermission
extends java.lang.Object

Auxiliary to set menu-permissions Used by the Web-CMS

Version:
$Revision: 78025 $

Field Summary
static java.security.Permission PERM_APPDESIGN
           
static java.security.Permission PERM_LAYOUTDESIGN
           
 
Constructor Summary
SaucMenuPermission()
           
 
Method Summary
 boolean checkPermission(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strMenuId)
           
 java.lang.Exception deletePermission(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strMenuId)
          Delete a menu permission.
 java.lang.Exception setInitialAdminPermission(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strMenuId)
           
 java.lang.Exception setPermission(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strMenuId, java.lang.String p_strPrincipalGuids, boolean p_bAdmin)
          Set Permission of a MenuItem.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERM_APPDESIGN

public static final java.security.Permission PERM_APPDESIGN

PERM_LAYOUTDESIGN

public static final java.security.Permission PERM_LAYOUTDESIGN
Constructor Detail

SaucMenuPermission

public SaucMenuPermission()
Method Detail

setInitialAdminPermission

public java.lang.Exception setInitialAdminPermission(de.uplanet.jdbc.JdbcConnection p_conn,
                                                     java.lang.String p_strMenuId)

checkPermission

public boolean checkPermission(de.uplanet.jdbc.JdbcConnection p_conn,
                               java.lang.String p_strMenuId)

setPermission

public java.lang.Exception setPermission(de.uplanet.jdbc.JdbcConnection p_conn,
                                         java.lang.String p_strMenuId,
                                         java.lang.String p_strPrincipalGuids,
                                         boolean p_bAdmin)
Set Permission of a MenuItem.

Parameters:
p_conn - The database connection to be used.
p_strMenuId - The menu's unique identifier.
p_strPrincipalGuids - The list of principal-guids as a string
Returns:
Exception, if occurred else null

deletePermission

public java.lang.Exception deletePermission(de.uplanet.jdbc.JdbcConnection p_conn,
                                            java.lang.String p_strMenuId)
Delete a menu permission.

Parameters:
p_conn - The database connection to be used.
p_strMenuId - The menu's unique identifier.
Returns:
Exception if occurred, otherwise null


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.