Esempio n. 1
0
 public static V1_GroupSchema getGroup(String id) {
   Database db = DatabaseInstance.getInstance();
   return db.getGroup(id, VersionMetadata.V1);
 }
Esempio n. 2
0
 public static List<V1_GroupSchema> getGroups() {
   Database db = DatabaseInstance.getInstance();
   return db.getGroups_V1();
 }
Esempio n. 3
0
 public static V1_GUserSchema createUser(V1_GUserSchema user) {
   Database db = DatabaseInstance.getInstance();
   user = db.createUser(user);
   return user;
 }
Esempio n. 4
0
 public static boolean deleteUser(String id) {
   Database db = DatabaseInstance.getInstance();
   boolean isDeleted = db.deleteUser(id);
   return isDeleted;
 }
Esempio n. 5
0
 public static boolean updateUser(String id, V1_GUserSchema user) {
   Database db = DatabaseInstance.getInstance();
   boolean isUpdated = db.updateUser(id, user);
   return isUpdated;
 }
Esempio n. 6
0
 public static List<V1_GUserSchema> getUsers() {
   Database db = DatabaseInstance.getInstance();
   return db.getUers_V1();
 }
Esempio n. 7
0
 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;
 }