| | |
| | | public void initializeCLSearchFromGenState(String crossDomainStartState) |
| | | throws DirectoryException |
| | | { |
| | | initializeCLDomCtxts(crossDomainStartState); |
| | | initializeCLDomCtxts(crossDomainStartState, false); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | this.draftCompat = true; |
| | | |
| | | initializeCLDomCtxts(crossDomainStartState); |
| | | initializeCLDomCtxts(crossDomainStartState, true); |
| | | } |
| | | catch(DirectoryException de) |
| | | { |
| | |
| | | |
| | | /** |
| | | * Initialize the context for each domain. |
| | | * @param providedCookie the provided generalized state |
| | | * @param providedCookie the provided generalized state |
| | | * @param allowUnknownDomains Provides all changes for domains not included |
| | | * in the provided cookie. |
| | | * @throws DirectoryException When an error occurs. |
| | | */ |
| | | public void initializeCLDomCtxts(String providedCookie) |
| | | public void initializeCLDomCtxts(String providedCookie, |
| | | boolean allowUnknownDomains) |
| | | throws DirectoryException |
| | | { |
| | | HashMap<String,ServerState> startStates = new HashMap<String,ServerState>(); |
| | |
| | | else |
| | | { |
| | | newDomainCtxt.startState = startStates.remove(rsd.getBaseDn()); |
| | | if ((providedCookie==null)||(providedCookie.length()==0)) |
| | | if ((providedCookie==null)||(providedCookie.length()==0) |
| | | ||allowUnknownDomains) |
| | | newDomainCtxt.startState = new ServerState(); |
| | | else |
| | | if (newDomainCtxt.startState == null) |