Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public static Origin materializeTC10Origin(
     String itemId, String revision, String datasetName, String datasetType, 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 =
       ""; // TC10RepositoryBase.materializeUniqueID(itemId, revision, datasetName, datasetType,
           // fileName);
   TC10Origin o =
       (TC10Origin)
           OriginMaker.materialize(
               domainName,
               serverName,
               Origin.FROM_TEAMCENTER_10,
               "TC10-Test-Server",
               0,
               uniqueID,
               null,
               null);
   return o;
 }