*
* @see com.adito.wizard.forms.AbstractWizardForm#init(com.adito.wizard.AbstractWizardSequence)
*/
public void init(AbstractWizardSequence sequence, HttpServletRequest request) throws Exception {
resourceName = (String) sequence.getAttribute(TunnelDetailsForm.ATTR_RESOURCE_NAME, null);
PropertyList l = (PropertyList) sequence.getAttribute(TunnelPolicySelectionForm.ATTR_SELECTED_POLICIES, null);
selectedPolicies = new ArrayList<String>();
if (SessionInfo.USER_CONSOLE_CONTEXT == LogonControllerFactory.getInstance().getSessionInfo(request).getNavigationContext()) {
for(Iterator i = l.iterator(); i.hasNext(); ) {
selectedPolicies.add(i.next().toString());
}
} else {
for(Iterator i = l.iterator(); i.hasNext(); ) {
selectedPolicies.add(PolicyDatabaseFactory.getInstance().getPolicy(Integer.parseInt(i.next().toString())).getResourceName());
}
}
user = (User) sequence.getAttribute(TunnelDetailsAction.ATTR_USER, null);
}