/** * * @return id of 'masked' group or stem */ public String getId() { if(group!=null) return group.getUuid(); return stem.getUuid(); }
protected void init(Stem s) { dynaBean = new WrapDynaBean(s); super.objType = objType; if (s == null) throw new NullPointerException( "Cannot create StemAsMap with a null stem"); this.stem = s; wrappedObject = s; put("subjectType", "stem"); //put("isGroup",Boolean.FALSE); put("isStem", Boolean.TRUE); put("id", s.getUuid()); put("stemId", s.getUuid()); }
System.out.println("Root stem found with id=" + stem.getUuid()); System.out.println("PASSED"); }else{
Stem stem = wsStemLookup.retrieveStem(); if (stem != null) { stemIds.add(stem.getUuid()); } else {
private boolean shouldMembershipSubjectContainerBeMerged(MembershipSubjectContainer container1, MembershipSubjectContainer container2) { String uuid1 = container1.getMember().getUuid(); String uuid2 = container2.getMember().getUuid(); Group group1 = container1.getGroupOwner(); Group group2 = container2.getGroupOwner(); Stem stem1 = container1.getStemOwner(); Stem stem2 = container2.getStemOwner(); AttributeDef attributeDef1 = container1.getAttributeDefOwner(); AttributeDef attributeDef2 = container2.getAttributeDefOwner(); if (StringUtils.equals(uuid1, uuid2) && (group1 != null && group2 != null && StringUtils.equals(group1.getUuid(), group2.getUuid() )) || (stem1 != null && stem2 != null && StringUtils.equals(stem1.getUuid(), stem2.getUuid())) || (attributeDef1 != null && attributeDef2 != null && StringUtils.equals(attributeDef1.getUuid(), attributeDef2.getUuid()))) { return true; } return false; }
if ((hasUuid && !StringUtils.equals(this.uuid, theStem.getUuid())) || (hasName && !StringUtils.equals(this.stemName, theStem.getName())) || (hasIdIndex && !GrouperUtil.equals(GrouperUtil.longValue(this.idIndex), theStem.getIdIndex()))){
Map sMap = stem2Map(s,(Stem)listItem); sSubjMap.put("memberOfGroup",sMap); sSubjMap.put("asMemberOf",((Stem)listItem).getUuid()); maps.add(sSubjMap); continue;
/** * construct based on stem, assign all fields * * @param stem is what to construct from */ public WsStem(Stem stem) { this.setDescription(stem.getDescription()); this.setDisplayName(stem.getDisplayName()); this.setName(stem.getName()); this.setUuid(stem.getUuid()); this.setExtension(stem.getExtension()); this.setDisplayExtension(stem.getDisplayExtension()); //if greater then 2.2 then set id index if (GrouperWsVersionUtils.retrieveCurrentClientVersion() .greaterOrEqualToArg(GrouperVersion.valueOfIgnoreCase("v2_2_000"))) { this.setIdIndex(stem.getIdIndex() == null ? null : stem.getIdIndex().toString()); } }