Class SaucMenuPermission
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.menu.SaucMenuPermission
-
@VelocityCallable("singleton") public final class SaucMenuPermission extends Object
Auxiliary to set menu-permissions Used by the Web-CMS
-
-
Field Summary
Fields Modifier and Type Field Description static Permission
PERM_APPDESIGN
static Permission
PERM_LAYOUTDESIGN
-
Constructor Summary
Constructors Constructor Description SaucMenuPermission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkPermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId)
Exception
deletePermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId)
Delete a menu permission.Exception
setInitialAdminPermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId)
Exception
setInitialPermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId, String p_strPrincipalGuids, boolean p_bAdmin)
Exception
setPermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId, String p_strPrincipalGuids, boolean p_bAdmin)
Set Permission of a MenuItem.
-
-
-
Field Detail
-
PERM_APPDESIGN
public static final Permission PERM_APPDESIGN
-
PERM_LAYOUTDESIGN
public static final Permission PERM_LAYOUTDESIGN
-
-
Method Detail
-
setInitialAdminPermission
public Exception setInitialAdminPermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId)
-
setInitialPermission
public Exception setInitialPermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId, String p_strPrincipalGuids, boolean p_bAdmin)
-
checkPermission
public boolean checkPermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId)
-
setPermission
public Exception setPermission(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuId, 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
-
-