void removeAdminRoleAci(boolean recursive) throws AMException, SSOException {
  String orgDN=getOrganizationDN();
  AMOrganizationImpl org=new AMOrganizationImpl(token,orgDN);
  Set aciSet=org.getAttribute("aci");
  Set newAciSet=new HashSet();
  Iterator iter=aciSet.iterator();
  DN thisDN=DN.valueOf(entryDN);
  while (iter.hasNext()) {
    String aci=(String)iter.next();
    int index=aci.indexOf("version 3.0;");
    if (index == -1) {
      newAciSet.add(aci);
      continue;
    }
    index=aci.indexOf("roledn",index);
    if (index == -1) {
      newAciSet.add(aci);
      continue;
    }
    index=aci.indexOf("ldap:///",index);
    if (index == -1) {
      newAciSet.add(aci);
      continue;
    }
    int index2=aci.lastIndexOf("\"");
    DN roleDN=DN.valueOf(aci.substring(index + 8,index2));
    String roleName=LDAPUtils.rdnValueFromDn(roleDN);
    String tmpdn=roleName.replace('_',',');
    DN tmpDN=DN.valueOf(tmpdn);
    if (!tmpDN.isRootDN()) {
      if (!tmpDN.equals(thisDN)) {
        if (tmpDN.isInScopeOf(thisDN,SearchScope.SUBORDINATES)) {
          if (!recursive) {
            newAciSet.add(aci);
          }
        }
 else {
          newAciSet.add(aci);
        }
      }
    }
 else {
      newAciSet.add(aci);
    }
  }
  org.setAttribute("aci",newAciSet);
  org.store();
}

void removeAdminRoleAci ( boolean recursive ) throws AMException , SSOException { String orgDN = getOrganizationDN ( ) ; AMOrganizationImpl org = new AMOrganizationImpl ( token , orgDN ) ; Set aciSet = org . getAttribute ( "aci" ) ; Set newAciSet = new HashSet ( ) ; Iterator iter = aciSet . iterator ( ) ; DN thisDN = DN . valueOf ( entryDN ) ; while ( iter . hasNext ( ) ) { String aci = ( String ) iter . next ( ) ; int index = aci . indexOf ( "version 3.0;" ) ; if ( index == - 1 ) { newAciSet . add ( aci ) ; continue ; } index = aci . indexOf ( "roledn" , index ) ; if ( index == - 1 ) { newAciSet . add ( aci ) ; continue ; } index = aci . indexOf ( "ldap:///" , index ) ; if ( index == - 1 ) { newAciSet . add ( aci ) ; continue ; } int index2 = aci . lastIndexOf ( "\"" ) ; DN roleDN = DN . valueOf ( aci . substring ( index + 8 , index2 ) ) ; String roleName = LDAPUtils . rdnValueFromDn ( roleDN ) ; String tmpdn = roleName . replace ( '_' , ',' ) ; DN tmpDN = DN . valueOf ( tmpdn ) ; if ( ! tmpDN . isRootDN ( ) ) { if ( ! tmpDN . equals ( thisDN ) ) { if ( tmpDN . isInScopeOf ( thisDN , SearchScope . SUBORDINATES ) ) { if ( ! recursive ) { newAciSet . add ( aci ) ; } } else { newAciSet . add ( aci ) ; } } } else { newAciSet . add ( aci ) ; } } org . setAttribute ( "aci" , newAciSet ) ; org . store ( ) ; }
removes the aci for the admin roles
