public class SulisPublishHelper
extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
ENABLESULISQUEUES |
static int |
MAJOR |
static int |
MINOR |
static Map<String,String> |
SULISQUEUENAMES |
static Vector<String> |
SULISWORKERTYPES |
static SimpleDateFormat |
TSFORMAT7 |
static String |
VALIDQUEUESETS |
Constructor and Description |
---|
SulisPublishHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(File sourceFile,
File destFile) |
static void |
deleteAllReps(Representable repHolder) |
static void |
deleteDefaultRep(Representable repHolder) |
static Boolean |
docFilterMethod(WTDocument doc,
ContentItem ci) |
static void |
emitPublish(Persistable per) |
static void |
emitPublish(Persistable per,
String additionalParams,
boolean allowOnlyLatest,
boolean checkIfValidfForPublishing,
boolean preventMultiplePublishing) |
static void |
emitPublish(Representable repHolder,
boolean enforceRepublish) |
static Boolean |
epmFilterMethod(EPMDocument epm) |
static Boolean |
filterMethod(Persistable p,
Boolean publishFromDB) |
static Boolean |
filterMethod(WTDocument doc,
ContentItem ci) |
static Boolean |
genericFilterMethod(Persistable p,
Boolean publishFromDB) |
static String |
getAppQueueSet(String authApp) |
static Representation |
getDefaultRepresentation(Representable repHolder)
return default rep of given repHolder.
|
static String |
getGenericNonCADWorker(Persistable per) |
static Timestamp |
getLastModTS(Persistable epmdoc) |
static Map<String,String> |
getMappedData(Persistable objToPublish) |
static Map<String,String> |
getMappedDataSet(Persistable per,
String mappingFilename) |
static PublishJob |
getPublishJobForPersistable(Persistable per,
boolean includeFailed) |
static PublishJob |
getPublishJobForPersistable(Persistable per,
boolean includeFailed,
boolean includeExecuting) |
static String[] |
getPublishPrio(Persistable p,
Integer requestType,
Integer requestSource,
String requestPriority,
String requestSet,
String repName,
String repDescription) |
static String |
getWorkerSet(Persistable p,
String workerType,
String fileName,
String queuePriority,
String queueSet) |
static boolean |
isAlreadyBeingPublished(Persistable per,
boolean includeFailed,
boolean includeExecuting) |
static Boolean |
isOutOfDate(EPMDocument epmdoc,
Representation rep) |
static Boolean |
isOutOfDate(EPMDocument epmdoc,
Representation rep,
EPMDocument epm2) |
static boolean |
isOutOfDate(Persistable p) |
static Boolean |
isOutOfDate2(EPMDocument epmdoc) |
static Boolean |
isOutOfDate3(EPMDocument epmdoc,
Representation rep,
EPMDocument doc2) |
static Boolean |
isOutOfDate4(WTDocument wtdoc) |
static boolean |
isSulisGenericCADEnabled(String authApp,
String docType) |
static boolean |
isValidForPublishing(Persistable per) |
static HashMap<String,String> |
readMappingFile(File mappingFile) |
public static final int MAJOR
public static final int MINOR
public static SimpleDateFormat TSFORMAT7
public static final String VALIDQUEUESETS
public static Vector<String> SULISWORKERTYPES
public static Map<String,String> SULISQUEUENAMES
public static boolean ENABLESULISQUEUES
public static String[] getPublishPrio(Persistable p, Integer requestType, Integer requestSource, String requestPriority, String requestSet, String repName, String repDescription)
public static String getWorkerSet(Persistable p, String workerType, String fileName, String queuePriority, String queueSet)
public static String getAppQueueSet(String authApp)
public static void emitPublish(Persistable per) throws Exception
Exception
public static void emitPublish(Persistable per, String additionalParams, boolean allowOnlyLatest, boolean checkIfValidfForPublishing, boolean preventMultiplePublishing) throws Exception
per
- - the Persistable to be publishedadditionalParams
- - string based additional parameters which can be used by customized workers for operation control/adjustmentallowOnlyLatest
- - if per is not latest iteration of latest version, switch to latest of latest.checkIfValidfForPublishing
- - check if per is valid for publishing. all epmdocs are valid per se, wtdocs are ok if office or supported sulisworkertypespreventMultiplePublishing
- - check if per is already in publishing queue. if true and a pending job exists, don't add again to queue.Exception
public static boolean isValidForPublishing(Persistable per)
public static String getGenericNonCADWorker(Persistable per)
public static Boolean isOutOfDate2(EPMDocument epmdoc)
public static Boolean isOutOfDate3(EPMDocument epmdoc, Representation rep, EPMDocument doc2)
public static Boolean isOutOfDate(EPMDocument epmdoc, Representation rep, EPMDocument epm2)
public static Boolean isOutOfDate(EPMDocument epmdoc, Representation rep)
public static Timestamp getLastModTS(Persistable epmdoc)
public static Boolean isOutOfDate4(WTDocument wtdoc)
public static boolean isOutOfDate(Persistable p)
public static boolean isAlreadyBeingPublished(Persistable per, boolean includeFailed, boolean includeExecuting)
public static PublishJob getPublishJobForPersistable(Persistable per, boolean includeFailed) throws WTException
WTException
public static PublishJob getPublishJobForPersistable(Persistable per, boolean includeFailed, boolean includeExecuting) throws WTException
WTException
public static Boolean epmFilterMethod(EPMDocument epm)
public static Boolean docFilterMethod(WTDocument doc, ContentItem ci)
public static Boolean genericFilterMethod(Persistable p, Boolean publishFromDB)
public static Boolean filterMethod(WTDocument doc, ContentItem ci)
public static Boolean filterMethod(Persistable p, Boolean publishFromDB)
public static void copyFile(File sourceFile, File destFile) throws IOException
IOException
public static boolean isSulisGenericCADEnabled(String authApp, String docType)
public static void deleteDefaultRep(Representable repHolder)
public static void deleteAllReps(Representable repHolder)
public static void emitPublish(Representable repHolder, boolean enforceRepublish) throws Exception
Exception
public static Representation getDefaultRepresentation(Representable repHolder) throws Exception
repHolder
- Exception
public static HashMap<String,String> readMappingFile(File mappingFile)
public static Map<String,String> getMappedData(Persistable objToPublish) throws Exception
Exception
public static Map<String,String> getMappedDataSet(Persistable per, String mappingFilename) throws Exception
Exception