Removed unneccessary imports and code segments

revert-70aa11f8
milanperera 9 years ago
parent a84edd7a99
commit a0187b905b

@ -25,7 +25,6 @@ import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller; import javax.xml.bind.Unmarshaller;
import java.io.InputStream; import java.io.InputStream;
import java.util.List; import java.util.List;
import java.util.StringTokenizer;
/** /**
* This class will add, update custom permissions defined in permission.xml in webapps. * This class will add, update custom permissions defined in permission.xml in webapps.

@ -78,12 +78,6 @@ public class WebappAuthenticatorFrameworkServiceComponent {
} }
DataHolder.getInstance().setWebappAuthenticatorRepository(repository); DataHolder.getInstance().setWebappAuthenticatorRepository(repository);
// Adding permissions to registry
// PermissionAuthorizerConfig.init();
// for (Permission permission : PermissionAuthorizerConfig.getInstance().getPermissions()) {
// PermissionAuthorizerUtil.addPermission(permission);
// }
List<CarbonTomcatValve> valves = new ArrayList<CarbonTomcatValve>(); List<CarbonTomcatValve> valves = new ArrayList<CarbonTomcatValve>();
valves.add(new WebappAuthenticationHandler()); valves.add(new WebappAuthenticationHandler());
valves.add(new PermissionAuthorizationValve()); valves.add(new PermissionAuthorizationValve());

Loading…
Cancel
Save