newNetworkPlace = NetworkPlaceDatabaseFactory.getInstance().createNetworkPlace(scheme, shortName, description, host,
path, port, username, password, readOnly, allowRecursive, noDelete, showHidden, autoStart,
getSessionInfo(request).getUser().getRealm().getRealmID());
CoreServlet.getServlet().fireCoreEvent(
NetworkPlaceResourceType.addNetworkPlaceAttributes(new ResourceChangeEvent(this,
NetworkPlacesEventConstants.CREATE_NETWORK_PLACE, newNetworkPlace,
getSessionInfo(request), CoreEvent.STATE_SUCCESSFUL), newNetworkPlace));
} catch (Exception e) {
CoreServlet.getServlet().fireCoreEvent(
new ResourceChangeEvent(this, NetworkPlacesEventConstants.CREATE_NETWORK_PLACE,
getSessionInfo(request), e));
throw e;
}
actionStatus.add(new WizardActionStatus(WizardActionStatus.COMPLETED_OK,
"networkPlaceWizard.networkPlaceFinish.status.profileCreated"));