Esempio n. 1
0
 /* (non-Javadoc)
  * @see it.eng.spago.security.IEngUserProfile#isAbleToExecuteModuleInPage(java.lang.String, java.lang.String)
  */
 public boolean isAbleToExecuteModuleInPage(String pageName, String moduleName)
     throws EMFInternalError {
   String functionality =
       AuthorizationsBusinessMapper.getInstance()
           .mapPageModuleToBusinessProcess(pageName, moduleName);
   if (functionality != null) {
     return this.functionalities.contains(functionality);
   } else return false;
 }
Esempio n. 2
0
 /* (non-Javadoc)
  * @see it.eng.spago.security.IEngUserProfile#isAbleToExecuteAction(java.lang.String)
  */
 public boolean isAbleToExecuteAction(String actionName) throws EMFInternalError {
   // first check if the actionName is a functionality...
   if (this.functionalities.contains(actionName)) {
     return true;
   }
   String functionality =
       AuthorizationsBusinessMapper.getInstance().mapActionToBusinessProcess(actionName);
   if (functionality != null) {
     return this.functionalities.contains(functionality);
   } else return false;
 }
Esempio n. 3
0
  /* (non-Javadoc)
   * @see it.eng.spago.security.IEngUserProfile#isAbleToExecuteAction(java.lang.String)
   */
  public boolean isAbleToExecuteService(String serviceUrl) throws EMFInternalError {
    // first check if the actionName is a functionality...
    if (this.functionalities.contains(serviceUrl)) {
      return true;
    }
    String functionality =
        AuthorizationsBusinessMapper.getInstance().mapServiceToBusinessProcess(serviceUrl);

    if (functionality != null) {
      if (functionality.equals(PUBLIC_FUNCTIONALITY)) {
        return true;
      }
      return this.functionalities.contains(functionality);
    } else return false;
  }