KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > repository > util > DjUidResolver


1 package com.genimen.djeneric.repository.util;
2
3 import java.util.HashMap JavaDoc;
4
5 import com.genimen.djeneric.repository.DjSession;
6 import com.genimen.djeneric.repository.DjUid;
7
8 public interface DjUidResolver
9 {
10   /**
11    * Resolve all objects identified by the array of uids. This method is called when
12    * an import can not proceed because external references could not be determined
13    * automatically. (I.e. objects were deleted, their unique identifiers updated or
14    * they simply never existed in the target repository)
15    * If false is returned the import will be aborted.
16    *
17    * @param session
18    * @param uids an array of DjUid specifying external objects that could not be located
19    * in the repository and need to be resolved
20    * @param objectidToExternalObject HashMap{Long, DjObject} where the Long key is the
21    * internal object identifier; which is also used by DjUid for internal references
22    * @return
23    */

24   public boolean resolveReferences(DjSession session, DjUid[] uids, HashMap JavaDoc objectidToExternalObject);
25 }
26
Popular Tags