| java.lang.Object es.udc.mypersonalizer.portal.controller.session.KeyChecker
KeyChecker | public class KeyChecker (Code) | | This utility class performs checks to ensure that a service property key
or workspace layout identifier are valid and correspond, either with
a service present in the current workspace, or with one of the workspaces
for wich the user has permissions.
author: Daniel Fernandez since: 1.0 |
isValidServicePropertyKey | public static boolean isValidServicePropertyKey(HttpServletRequest request, ServicePropertyKey key) throws InternalErrorException(Code) | | Checks if a given service property key corresponds to any of the services
present in the current workspace layout.
Parameters: request - the request object. Parameters: key - the service property key to check throws: InternalErrorException - if any fatal errors happen. true if the service property key is valid,false if not. |
isValidWorkspaceLayoutIdentifier | public static boolean isValidWorkspaceLayoutIdentifier(HttpServletRequest request, Long identifier) throws InternalErrorException(Code) | | Checks if a workspace layout identifier given corresponds to any of
the workspace layouts the user has access to in his / her desktop.
Parameters: request - the request object. Parameters: identifier - the workspace layout identifier. throws: InternalErrorException - if any fatal errors happen. true if the identifier is valid, false if not. |
|
|