public static V1_GroupSchema getGroup(String id) { Database db = DatabaseInstance.getInstance(); return db.getGroup(id, VersionMetadata.V1); }
public static List<V1_GroupSchema> getGroups() { Database db = DatabaseInstance.getInstance(); return db.getGroups_V1(); }
public static V1_GUserSchema createUser(V1_GUserSchema user) { Database db = DatabaseInstance.getInstance(); user = db.createUser(user); return user; }
public static boolean deleteUser(String id) { Database db = DatabaseInstance.getInstance(); boolean isDeleted = db.deleteUser(id); return isDeleted; }
public static boolean updateUser(String id, V1_GUserSchema user) { Database db = DatabaseInstance.getInstance(); boolean isUpdated = db.updateUser(id, user); return isUpdated; }
public static List<V1_GUserSchema> getUsers() { Database db = DatabaseInstance.getInstance(); return db.getUers_V1(); }
public static GUserSchema getUser(String id) { if (id == null || "".equals(id.trim())) return new V1_GUserSchema(); Database db = DatabaseInstance.getInstance(); GUserSchema user = db.getGUser(id, VersionMetadata.V1); return user; }