Interface AdminNavigationService
- All Known Implementing Classes:
AdminNavigationServiceImpl
public interface AdminNavigationService
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPermissions(Set<String> authorizedPermissionNames, String permissionName) findAdminSectionByClassAndSectionId(Class<?> clazz, String sectionId) In some cases, a single class is served by more than one section.findAdminSectionByClassAndSectionId(String className, String sectionId) In some cases, a single class is served by more than one section.findAdminSectionBySectionKey(String sectionKey) Gets all of theAdminSections in the system, sorted by theAdminSection.getDisplayOrder()getClassNameForSection(String sectionKey) Gets the fully qualified ceiling entity classname for this section.getSectionCrumbs(String crumbList) Utility method for parsing a delimitted section crumb list (usually the "sectionCrumbs" parameter on the HttpServletRequest).booleanisUserAuthorizedToViewModule(AdminUser adminUser, AdminModule module) booleanisUserAuthorizedToViewSection(AdminUser adminUser, AdminSection section) voidremove(AdminSection adminSection) save(AdminSection adminSection)
-
Method Details
-
buildMenu
-
isUserAuthorizedToViewSection
-
isUserAuthorizedToViewModule
-
findAdminSectionByURI
-
findAdminSectionBySectionKey
-
findBaseAdminSectionByClass
-
findAdminSectionByClassAndSectionId
In some cases, a single class is served by more than one section.- Parameters:
className-sectionId-- Returns:
-
findAdminSectionByClassAndSectionId
In some cases, a single class is served by more than one section.- Parameters:
className-sectionId-- Returns:
-
findAllAdminSections
List<AdminSection> findAllAdminSections()Gets all of theAdminSections in the system, sorted by theAdminSection.getDisplayOrder()- Returns:
- the list of all
AdminSections sorted byAdminSection.getDisplayOrder()
-
save
-
remove
-
checkPermissions
-
getClassNameForSection
Gets the fully qualified ceiling entity classname for this section. If this section is not explicitly defined in the database, will return the value passed into this function. For example, if there is a mapping from "/myentity" to "com.mycompany.myentity", both "http://localhost/myentity" and "http://localhost/com.mycompany.myentity" are valid request paths.- Parameters:
sectionKey-- Returns:
- the className for this sectionKey if found in the database or the sectionKey if not
-
getSectionCrumbs
Utility method for parsing a delimitted section crumb list (usually the "sectionCrumbs" parameter on the HttpServletRequest). Should return a list ofSectionCrumbinstances used to identify the different, currently active admin sections.- Parameters:
crumbList- delimitted string of section identifiers- Returns:
- currently active admin sections in the order specified in the crumbList param
-