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