wt.ixb.mapping
Class IxbUfidHelper

java.lang.Object
  extended bywt.ixb.mapping.IxbUfidHelper

public class IxbUfidHelper
extends Object


Constructor Summary
IxbUfidHelper()
           
 
Method Summary
private static Federatable findObjectOfUfidInContainer(String ufid, String containerId)
           
static String getBirthUfidByLocalUfid(String localUfid)
           
static String getLocalUfidByBirthUfidAndContainer(String birthUfid, String containerId)
          This method looks for UFID matches in the mapping table
static Federatable getObjectOfBirthUfid(String birthUfid, String containerId)
          Find object with a given birth ufid in a given container
private static UfidMapping getUfidMappingByBirthUfidAndContainer(String birthUfid, String containerId)
           
private static UfidMapping getUfidMappingByLocalUfid(String localUfid)
           
private static boolean isFederatedObjInContainer(Federatable obj, String containerId)
           
private static void PP(String s)
           
static void storeNewUfidMapping(String localUfid, String birthUfid, String containerId)
           
static boolean ufidMappingAlreadyExists(String birthUfid, String containerId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IxbUfidHelper

public IxbUfidHelper()
Method Detail

getBirthUfidByLocalUfid

public static String getBirthUfidByLocalUfid(String localUfid)
                                      throws WTException
Throws:
WTException

getLocalUfidByBirthUfidAndContainer

public static String getLocalUfidByBirthUfidAndContainer(String birthUfid,
                                                         String containerId)
                                                  throws WTException
This method looks for UFID matches in the mapping table

Parameters:
birthUfid - string representation of Ufid with which object was brought to this system
Returns:
local ufid for corresponding object in container (null if there is no such object)
Throws:
WTException

ufidMappingAlreadyExists

public static boolean ufidMappingAlreadyExists(String birthUfid,
                                               String containerId)
                                        throws WTException
Throws:
WTException

storeNewUfidMapping

public static void storeNewUfidMapping(String localUfid,
                                       String birthUfid,
                                       String containerId)
                                throws WTException
Throws:
WTException

getObjectOfBirthUfid

public static Federatable getObjectOfBirthUfid(String birthUfid,
                                               String containerId)
                                        throws WTException
Find object with a given birth ufid in a given container

Throws:
WTException

getUfidMappingByLocalUfid

private static UfidMapping getUfidMappingByLocalUfid(String localUfid)
                                              throws WTException
Throws:
WTException

getUfidMappingByBirthUfidAndContainer

private static UfidMapping getUfidMappingByBirthUfidAndContainer(String birthUfid,
                                                                 String containerId)
                                                          throws WTException
Throws:
WTException

findObjectOfUfidInContainer

private static Federatable findObjectOfUfidInContainer(String ufid,
                                                       String containerId)
                                                throws WTException
Throws:
WTException

isFederatedObjInContainer

private static boolean isFederatedObjInContainer(Federatable obj,
                                                 String containerId)
                                          throws WTException
Throws:
WTException

PP

private static void PP(String s)