Package org.atomojo.auth.service.db

Examples of org.atomojo.auth.service.db.Group.removeMember()


               if (facet.equals("members")) {
                  if (facetId!=null) {
                     try {
                        UUID id = UUID.fromString(facetId);
                        RealmUser user = fetchUser(id);
                        if (user!=null && group.removeMember(user)) {
                           getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
                        } else {
                           getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
                        }
                        return null;
View Full Code Here


                        return new StringRepresentation("Bad UUID value "+facetId);
                     }
                  } else if (facetName!=null) {
                     try {
                        RealmUser user = fetchUser(facetName);
                        if (user!=null && group.removeMember(user)) {
                           getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
                        } else {
                           getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
                        }
                        return null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.