/** * Analogous to destroy, except does not remove links from Policy Context, * and does not remove context_id from role mapper factory. Used to support * Policy Changes that occur via ServletContextListener. * * @throws PolicyContextException */ public void release() throws PolicyContextException { boolean wasInService = getPolicyFactory().inService(CONTEXT_ID); PolicyConfiguration config = getPolicyFactory().getPolicyConfiguration(CONTEXT_ID,false); WebPermissionUtil.removePolicyStatements(config,wbd); // refresh policy if the context was in service if (wasInService) { Policy.getPolicy().refresh(); } PermissionCacheFactory.removePermissionCache(uncheckedPermissionCache); uncheckedPermissionCache = null; wsmf.getManager(CONTEXT_ID,null,true); }
/** * Analogous to destroy, except does not remove links from Policy Context, * and does not remove context_id from role mapper factory. Used to support * Policy Changes that occur via ServletContextListener. * * @throws PolicyContextException */ public void release() throws PolicyContextException { boolean wasInService = getPolicyFactory().inService(CONTEXT_ID); PolicyConfiguration config = getPolicyFactory().getPolicyConfiguration(CONTEXT_ID,false); WebPermissionUtil.removePolicyStatements(config,wbd); // refresh policy if the context was in service if (wasInService) { Policy.getPolicy().refresh(); } PermissionCacheFactory.removePermissionCache(uncheckedPermissionCache); uncheckedPermissionCache = null; wsmf.getManager(CONTEXT_ID,null,true); }