public class SulisPublishFilter
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KEY_AUTHAPP |
static String |
KEY_CUSTOM |
static String |
KEY_EXT |
static String |
KEY_NAME |
static String |
KEY_OBJECT |
static String |
KEY_TYPE |
static String |
KEY_USER |
static int |
MAJOR
MAJOR version of the SulisPublishFilter as integer
|
static int |
MINOR
MINOR version of the SulisPublishFilter as integer
|
Constructor and Description |
---|
SulisPublishFilter() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
isAuthoringApplicationOK(EPMDocument epm)
PUBLIC publish filter method for EPMDocument's Authoring Application
to be filtered out from publishing EPMDocuments Authoring Application's are defined via : wt.property setting: e.g. |
static boolean |
isDocTypeOK(Persistable per)
prohibits the publishing of certain EPMDocuments and WTDocuments.
The HashSet DOCTYPE_EXCLUSION defines the Document TYPES (WT/EPMDocument.getDocType) that are prohibited from publishing. The Document types are determined by getDocType() (e.g. |
static boolean |
isExtensionOK(Persistable per)
prevent certain EPMDocuments and WTDocuments to be published.
The HashSet EXTENSION_EXCLUSION defines the extensions of the documents to be filtered out from publishing. |
static Boolean |
isFiltered(Persistable per,
Boolean isFiltered)
The method isFiltered decides if a EPM/WT Document is excluded from publishing by the other methods.
This method returns a Boolean.TRUE if the publishing is allowed and Boolean.FALSE if the publishing is determined to be prohibited. This method is called before the publishing process takes part by the wvs.property entry publish.service.filterpublishmethod=ext.sulis.worker.SulisPublishFilter/isFiltered The different exclusion Strings can be defined in the wvs.properties by setting the specific values separated by commas (case insensitive) wt.publish.filterpublishmethod.isFilteredDocType=doctype1,doctype2,doctype3 wt.publish.filterpublishmethod.isFilteredName=name1,name2,name3 wt.publish.filterpublishmethod.isFilteredExtension=ext1,ext2,ext3 wt.publish.filterpublishmethod.isFilteredUserName=usr1,usr2,usr3 wt.publish-filterpublishmethod.isFilteredCustomMethod=FQN_Class:Method The methods checking weather a type or extension or document name or publishing-job-user or a customized method decides, if a publishing job is filtered out from publishing or not. |
static boolean |
isNameOK(Persistable per)
prohibits the publishing of certain EPMDocuments and WTDocuments.
The HashSet DOCNAME_EXCLUSION defines the Document NAMES (determined by WT/EPMDocument.getName) that are prohibited from publishing. |
static boolean |
isUserOK()
overloades isUserOK(per)
|
static boolean |
isUserOK(Persistable per)
prohibits the publishing of certain EPMDocuments and WTDocuments.
The HashSet USERNAME_EXCLUSION defines the USERS that are prohibited from sending publish jobs. |
public static final int MAJOR
public static final int MINOR
public static final String KEY_EXT
public static final String KEY_TYPE
public static final String KEY_NAME
public static final String KEY_USER
public static final String KEY_OBJECT
public static final String KEY_AUTHAPP
public static final String KEY_CUSTOM
public static Boolean isFiltered(Persistable per, Boolean isFiltered) throws RuntimeException, Exception
Exception
RuntimeException
public static Boolean isAuthoringApplicationOK(EPMDocument epm)
epm
- public static boolean isExtensionOK(Persistable per) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public static boolean isNameOK(Persistable per) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public static boolean isDocTypeOK(Persistable per) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public static boolean isUserOK()
Exception
public static boolean isUserOK(Persistable per) throws Exception
Exception