void function ( String arg0 ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "srini_string" + arg0 ) ; } proxies . add ( arg0 ) ; }
gives the given privilege to all calls to hasprivilege . this method was visualized as being used as follows try/finally is important : try context.addproxyprivilege `` aaa '' ; context.getservice . methodrequiringaaaprivilege ; finally context.removeproxyprivilege `` aaa '' ; concode_field_sep Role authenticatedRole concode_elem_sep User user concode_elem_sep Integer locationId concode_elem_sep Role anonymousRole concode_elem_sep Log log concode_elem_sep Locale locale concode_elem_sep List<String> proxies concode_elem_sep long serialVersionUID concode_field_sep Integer getLocationId concode_elem_sep Set<Role> getAllRoles concode_elem_sep Set<Role> getAllRoles concode_elem_sep Location getLocation concode_elem_sep User authenticate concode_elem_sep User getAuthenticatedUser concode_elem_sep void removeProxyPrivilege concode_elem_sep void setUserLocation concode_elem_sep Role getAuthenticatedRole concode_elem_sep boolean hasPrivilege concode_elem_sep boolean isAuthenticated concode_elem_sep Role getAnonymousRole concode_elem_sep User becomeUser concode_elem_sep void logout concode_elem_sep void setLocation concode_elem_sep void refreshAuthenticatedUser concode_elem_sep void setLocationId concode_elem_sep Locale getLocale concode_elem_sep void setLocale