wt.ufid
Interface UfidSrvService

All Known Implementing Classes:
StandardUfidSrvService

public interface UfidSrvService

The Serivice is responsible for all persistable actions reguarding the Ufid.

Supported API: false

Extendable: false


Method Summary
 void assignAndStoreUfid(Federatable object, Ufid ufid)
          

Supported API: false
 WTKeyedHashMap assignAndStoreUfid(WTKeyedHashMap map)
          The input map contains the Federatable objects as key and their corresponding Ufid as value.
 Federatable changeLastKnownDomain(Federatable object, String new_domain)
          

Supported API: false
 WTCollection changeLastKnownDomain(WTCollection objectSet, String newDomain)
          Change the last known domain of the objects in the collection to the new domain specified

Supported API: false
 boolean compareUfids(Ufid ufid1, Ufid ufid2)
          

Supported API: false
 Federatable findCorrespondingObject(Ufid ufid)
          

Supported API: false
 QueryResult findCorrespondingObjects(String guid)
          Answer the QueryResult of all local objects for the given GUID

Supported API: false
 HashMap findCorrespondingObjectSet(Vector ufids)
          Returns a map containing the the Ufid as key and corresponding Federatable as value

Supported API: false
 WTKeyedHashMap findCorrespondingObjectsForGuids(Vector guids)
          Returns a map with the guid as key and corresponding QueryResult as value

Supported API: false
 Ufid getUfid(Federatable object)
          Returns the UFID of the Federatable.
 WTKeyedHashMap getUfids(WTCollection objectSet)
          Returns a map with the Federatable object as key and its Ufid as value

Supported API: false
 boolean hasCorrespondingObject(Ufid ufid)
          Answers true if a local object for the given UFID exists in the repository

Supported API: false
 void setUfid(Federatable object)
          Sets the UFID of the specified object.
 void setUfid(Federatable object, Ufid ufid)
          This should be used when ever a Federatable object is going to be Exported.
 void setUfid(WTCollection objectSet)
          Sets the UFID on each object in the objectSet.
 void setUfid(WTKeyedHashMap map)
          This should be used when ever a set of Federatable objects are going to be Exported.
 void storeUfidIfNecessary(Federatable target)
          

Supported API: false
 void storeUfidIfNecessary(WTCollection objectSet)
          

Supported API: false
 

Method Detail

setUfid

public void setUfid(Federatable object)
Sets the UFID of the specified object. If the object is local the ufid will be basis the Local Repository. If the object is a Remote object, the Ufid will be reconstituted from the RemoteObjectInfo. If the object is a locally owned remote object, then the Ufid will be build from its orignal guid and remoteId but with the local repositories domain.

Supported API: false

Parameters:
object -

setUfid

public void setUfid(Federatable object,
                    Ufid ufid)
This should be used when ever a Federatable object is going to be Exported. This method employs delegates to do the actual work, this way any object that has special needs when setting the Ufid, can be implemented in a delegate.

Supported API: false

Parameters:
object -
ufid -

getUfid

public Ufid getUfid(Federatable object)
             throws UfidException
Returns the UFID of the Federatable. Null if it has not been set.

Supported API: false

Parameters:
object -
Returns:
Ufid
Throws:
UfidException

changeLastKnownDomain

public Federatable changeLastKnownDomain(Federatable object,
                                         String new_domain)


Supported API: false

Parameters:
object -
new_domain -
Returns:
Federatable

compareUfids

public boolean compareUfids(Ufid ufid1,
                            Ufid ufid2)


Supported API: false

Parameters:
ufid1 -
ufid2 -
Returns:
boolean

findCorrespondingObjects

public QueryResult findCorrespondingObjects(String guid)
Answer the QueryResult of all local objects for the given GUID

Supported API: false

Parameters:
guid -
Returns:
QueryResult

findCorrespondingObject

public Federatable findCorrespondingObject(Ufid ufid)
                                    throws UfidException


Supported API: false

Parameters:
ufid -
Returns:
Federatable
Throws:
UfidException

hasCorrespondingObject

public boolean hasCorrespondingObject(Ufid ufid)
                               throws UfidException
Answers true if a local object for the given UFID exists in the repository

Supported API: false

Parameters:
ufid -
Returns:
boolean
Throws:
UfidException

assignAndStoreUfid

public void assignAndStoreUfid(Federatable object,
                               Ufid ufid)
                        throws UfidException


Supported API: false

Parameters:
object -
ufid -
Throws:
UfidException

storeUfidIfNecessary

public void storeUfidIfNecessary(Federatable target)
                          throws WTException


Supported API: false

Parameters:
target -
Throws:
WTException

assignAndStoreUfid

public WTKeyedHashMap assignAndStoreUfid(WTKeyedHashMap map)
                                  throws UfidException
The input map contains the Federatable objects as key and their corresponding Ufid as value.

Supported API: false

Parameters:
map -
Returns:
WTKeyedHashMap
Throws:
UfidException

changeLastKnownDomain

public WTCollection changeLastKnownDomain(WTCollection objectSet,
                                          String newDomain)
Change the last known domain of the objects in the collection to the new domain specified

Supported API: false

Parameters:
objectSet - Map of Federatable objects as key and corresponding new domain string as value
newDomain -
Returns:
WTCollection

findCorrespondingObjectSet

public HashMap findCorrespondingObjectSet(Vector ufids)
                                   throws UfidException
Returns a map containing the the Ufid as key and corresponding Federatable as value

Supported API: false

Parameters:
ufids - Vector of Ufids for which corresponding objects are needed.
Returns:
HashMap
Throws:
UfidException

findCorrespondingObjectsForGuids

public WTKeyedHashMap findCorrespondingObjectsForGuids(Vector guids)
Returns a map with the guid as key and corresponding QueryResult as value

Supported API: false

Parameters:
guids - Vector of guids
Returns:
WTKeyedHashMap

getUfids

public WTKeyedHashMap getUfids(WTCollection objectSet)
                        throws UfidException
Returns a map with the Federatable object as key and its Ufid as value

Supported API: false

Parameters:
objectSet -
Returns:
WTKeyedHashMap
Throws:
UfidException

setUfid

public void setUfid(WTCollection objectSet)
Sets the UFID on each object in the objectSet. If the object is local the ufid will be basis the Local Repository. If the object is a Remote object, the Ufid will be reconstituted from the RemoteObjectInfo. If the object is a locally owned remote object, then the Ufid will be build from its orignal guid and remoteId but with the local repositories domain.

Supported API: false

Parameters:
objectSet -

setUfid

public void setUfid(WTKeyedHashMap map)
This should be used when ever a set of Federatable objects are going to be Exported. This method employs delegates to do the actual work, this way any object that has special needs when setting the Ufid, can be implemented in a delegate.

Supported API: false

Parameters:
map - Map with the Federatable object as key and its corresponding Ufid as value

storeUfidIfNecessary

public void storeUfidIfNecessary(WTCollection objectSet)
                          throws WTException


Supported API: false

Parameters:
objectSet -
Throws:
WTException