Class Cms2MenuUtil
java.lang.Object
de.uplanet.lucy.server.cms2.groovy.menu.Cms2MenuUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleteMenuItem
(de.uplanet.jdbc.JdbcConnection p_conn, List<String> p_strMenuGuids) Deletes the given menu items from the menu.static boolean
Checks if the given menu GUID is published in the menu.
-
Method Details
-
isInMenu
public static boolean isInMenu(de.uplanet.jdbc.JdbcConnection p_conn, String p_strMenuGuid) throws de.uplanet.lucy.server.businesslogic.BlException Checks if the given menu GUID is published in the menu.- Parameters:
p_conn
- The database connection.p_strMenuGuid
- The menu GUID.- Returns:
true
if the menu GUID is published in the menu, otherwisefalse
.- Throws:
de.uplanet.lucy.server.businesslogic.BlException
- Thrown if checking the permission failed.
-
deleteMenuItem
public static void deleteMenuItem(de.uplanet.jdbc.JdbcConnection p_conn, List<String> p_strMenuGuids) throws de.uplanet.lucy.menu.MenuException, SQLException Deletes the given menu items from the menu.- Parameters:
p_conn
- The database connection.p_strMenuGuids
- The menu GUIDs.- Throws:
SQLException
- Thrown if accessing the database failed.de.uplanet.lucy.menu.MenuException
- Thrown if deleting menu item failed.
-