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