/** * Immutable constructor. * * @param deleted whether the contact was removed from the group. * @param href URI of the group. */ public GroupMembershipInfo(Boolean deleted, String href) { super(); setDeleted(deleted); setHref(href); setImmutable(true); }
/** * Immutable constructor. * * @param deleted whether the contact was removed from the group. * @param href URI of the group. */ public GroupMembershipInfo(Boolean deleted, String href) { super(); setDeleted(deleted); setHref(href); setImmutable(true); }
/** * Immutable constructor. * * @param deleted whether the contact was removed from the group. * @param href URI of the group. */ public GroupMembershipInfo(Boolean deleted, String href) { super(); setDeleted(deleted); setHref(href); setImmutable(true); }
/** * Returns an Object of Group Membership Info GData contacts object. This method takes a formatted OM * Element and converts to GroupMembershipInfo Object. * * @param messageContext Synapse Message Context. * @param membershipElement The parent element containing the individual elements. * @return an object of Group Membership Info. * @throws ValidationException validationException is thrown if herf attribute is missing. */ protected final GroupMembershipInfo getGroupMembershipInfoList(final MessageContext messageContext, final OMElement membershipElement) throws ValidationException { GroupMembershipInfo membershipInfo = new GroupMembershipInfo(); String herf = membershipElement.getAttributeValue(new QName(Constants.HERF)); if (herf != null) { membershipInfo .setDeleted(Boolean.valueOf(membershipElement.getAttributeValue(new QName(Constants.DELETED)))); membershipInfo.setHref(herf); } else { throw new ValidationException("Missing attribute: href"); } return membershipInfo; }