public interface Profile
Note: Profiles with only a reference should be used in applications to switch on/off a virus scan only. SAP applications make use of them, but in a customer application you could also create a "Reference Profile" and use this then for your own applications. See example coding in VSIService.
History:
1.0 Initial Version for SAP NetWeaver 1.1 Added a pattern for clean test. 1.5 Enhancements in the native VSI layer 1.6 Dual runtime support (JAVA stand-alone and J2EE) 1.7 Added scanStream methods and support ActiveContent scan 1.8 Added getContentInfo and support for Content filtering 1.9 Minor bug fixes and new vendor parameters
VSIService.getProfile()
,
Instance
Modifier and Type | Field and Description |
---|---|
static int |
ENTRY_TYP_GROUP
Constant of Profile entry type Group
|
static int |
ENTRY_TYP_PROFILE
Constant of Profile entry type Profile
|
static String |
ENTRYSTRING_TYP_GROUP
String constant of Profile entry type Group
|
static String |
ENTRYSTRING_TYP_PROFILE
String constant of Profile entry type Profile
|
static int |
PROFILE_AND_LINKED
Profile entries are linked with AND condition
|
static int |
PROFILE_OR_LINKED
Profile entries are linked with OR condition
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the profile name.
|
Parameter |
getParameter(String paramName)
Get one parameter.
|
Parameter[] |
getParameters()
Get all actual parameters.
|
int |
getProfileLinkCondition()
Return condition of linkage
PROFILE_AND_LINKED
PROFILE_OR_LINKED
|
String[][] |
getProfileSteps()
Return a String[][2] array of:
"Group" , "GroupName0"
"Profile", "ProfileName0"
"Group" , "GroupName1"
"Profile", "ProfileName1"
The returned steps are exactly in the order the
scan actions will be performed.
|
String |
getReferenceProfile()
Get the used reference profile name.
|
boolean |
isActive()
Get the Profile status.
|
boolean |
useReferenceProfile()
Return a boolean flag to determine weather this profile contains
only a reference to another profile or it contains steps for the
scan actions.
|
static final int PROFILE_AND_LINKED
static final int PROFILE_OR_LINKED
static final String ENTRYSTRING_TYP_GROUP
static final String ENTRYSTRING_TYP_PROFILE
static final int ENTRY_TYP_GROUP
static final int ENTRY_TYP_PROFILE
String getName()
Parameter[] getParameters()
Parameter getParameter(String paramName) throws VSIServiceException
paramName
- Name of the parameter to be s.VSIServiceException
- Problems reported with this exception can be communicated to
external systems because they reflect error in the data sent
by the caller.String[][] getProfileSteps()
"Group" , "GroupName0" "Profile", "ProfileName0" "Group" , "GroupName1" "Profile", "ProfileName1"
The returned steps are exactly in the order the scan actions will be performed. The order is important because depending on the LINKAGE (AND/OR) it might be that only one step is done.
int getProfileLinkCondition()
boolean useReferenceProfile()
String getReferenceProfile()
vsiService.getProfile().getName();
Note: If this is not reference profile you will get null
.
boolean isActive()
Active: the profile will be checked for its consistency and only if this is OK, the profile will be used for scan actions.
Not Active: the profile status is not active, which means a scan is not done.
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] ENGFACADE
|
[sap.com] tc/bl/vsi/api
|
api
|
BC-JAS-SEC
|
[sap.com] J2EE-APPS
|
[sap.com]
|
-
|
BC-SEC-VIR
|
[sap.com] J2EE-APPS
|
[sap.com]
|
default
|
BC-SEC-VIR
|
Copyright 2018 SAP AG Complete Copyright Notice