Package org.exoplatform.dlp.connector
Class DlpServiceConnector
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.dlp.connector.DlpServiceConnector
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
- Direct Known Subclasses:
FileDlpConnector
public abstract class DlpServiceConnector
extends org.exoplatform.container.component.BaseComponentPlugin
Is extended by all DlpService connectors, and allows to build configuration needed by a list of connectors that is used for Dlp.
-
Field Summary
FieldsFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDlpServiceConnector(org.exoplatform.container.xml.InitParams initParams) Initializes a dlp service connector. -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancheckExternal(String userId) abstract StringgetItemUrl(String itemReference) getType()booleanisEnable()abstract booleanprocessItem(String entityId) abstract voidremovePositiveItem(String itemReference) abstract voidrestorePositiveItem(String itemReference) voidsetDisplayName(String displayName) voidsetEnable(boolean enable) voidMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
DLP_POSITIVE_DETECTION
- See Also:
-
-
Constructor Details
-
DlpServiceConnector
protected DlpServiceConnector(org.exoplatform.container.xml.InitParams initParams) Initializes a dlp service connector. The constructor is default that connectors must implement.- Parameters:
initParams- The parameters which are used for initializing the dlp service connector from configuration.- eXo level API
- Experimental
-
-
Method Details
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getDisplayName
- Returns:
- the displayName
-
setDisplayName
- Parameters:
displayName- the displayName to set
-
isEnable
public boolean isEnable()- Returns:
- the enable
-
setEnable
public void setEnable(boolean enable) - Parameters:
enable- the enable to set
-
processItem
-
removePositiveItem
-
getItemUrl
-
checkExternal
-
restorePositiveItem
-