Improve single user login.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / kernel / Activator.java
index ae482d792e5703d7a935abed11c4d9e8638e92be..6d50f3dabed2f2c1de6b758c6fb35080a37a7f4c 100644 (file)
@@ -162,17 +162,7 @@ public class Activator implements BundleActivator {
 
        private void initNode() throws IOException {
                // Node state
-//             Path stateUuidPath = bc.getDataFile("stateUuid").toPath();
-//             String stateUuid;
-//             if (Files.exists(stateUuidPath)) {
-//                     stateUuid = Files.readAllLines(stateUuidPath).get(0);
-//             } else {
-//                     stateUuid = bc.getProperty(Constants.FRAMEWORK_UUID);
-//                     Files.write(stateUuidPath, stateUuid.getBytes());
-//             }
                nodeState = new CmsState();
-//             Dictionary<String, Object> regProps = LangUtils.dico(Constants.SERVICE_PID, NodeConstants.NODE_STATE_PID);
-//             regProps.put(NodeConstants.CN, stateUuid);
                registerService(NodeState.class, nodeState, null);
 
                // Node deployment
@@ -236,6 +226,7 @@ public class Activator implements BundleActivator {
                return getNodeUserAdmin().getAcceptorCredentials();
        }
 
+       @Deprecated
        public static boolean isSingleUser() {
                return getNodeUserAdmin().isSingleUser();
        }