Пример #1
0
 public static Origin materializeTC10ItemRevOrigin(String itemId, String revision)
     throws CanNotMaterialize {
   String domainName = "zws"; // this should come from actual routing information
   String serverName = "node-0"; // this should come from actual routing information
   String uniqueID = TC10Util.materializeItemRevUniqueID("AAAAAAAAAAAAAA", itemId, revision);
   TC10ItemRevOrigin o =
       (TC10ItemRevOrigin)
           OriginMaker.materialize(
               domainName,
               serverName,
               Origin.FROM_TEAMCENTER_10_REV,
               "TC10-Test-Server",
               0,
               uniqueID,
               null,
               null);
   return o;
 }
Пример #2
0
 public static Origin materializeTC10ImanFileOrigin(
     String itemId, String revision, String datasetType, String datasetName, String fileName)
     throws CanNotMaterialize {
   String domainName = "zws"; // this should come from actual routing information
   String serverName = "node-0"; // this should come from actual routing information
   String uniqueID =
       TC10Util.materializeIMANFileUniqueID(
           "AAAAAAAAAAAAAA", itemId, revision, datasetType, datasetName, fileName);
   TC10IMANFileOrigin o =
       (TC10IMANFileOrigin)
           OriginMaker.materialize(
               domainName,
               serverName,
               Origin.FROM_TEAMCENTER_10_IMANFILE,
               "TC10-Test-Server",
               0,
               uniqueID,
               null,
               null);
   return o;
 }