Package com.redwood.scheduler.api.model
Interface SAPBAEConnector
-
- All Superinterfaces:
ApplicationObject
,BusinessKeyObject
,NamedRootObject
,NamedRootObjectComp
,PartitionableObject
,PartitionableObjectComp
,Readable
,Root
,SAPBAEConnectorComp
,SchedulerEntity
,SchedulerEntityComp
,UniqueNamedApplicationObject
public interface SAPBAEConnector extends SAPBAEConnectorComp, UniqueNamedApplicationObject, Readable
SAP Business Application Enabler connection settings.
-
-
Field Summary
Fields Modifier and Type Field Description static String
OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "SAPBAEConnector" objects.static String
SEC_PRIV_BUSINESSAUTOMATIONAPI
This privilege can be granted at an instance level.static String
SEC_PRIV_CONTROL
This privilege can be granted at a group level.static String
SEC_PRIV_CREATE
This privilege can be granted at a group level.static String
SEC_PRIV_DELETE
This privilege can be granted at a group level.static String
SEC_PRIV_EDIT
This privilege can be granted at a group level.static String
SEC_PRIV_VIEW
This privilege can be granted at a group level.static String
SEC_RANK_ADMINISTRATOR
This rank is made of the following privileges: view , controlstatic String
SEC_RANK_ALL
This rank is made of the following privileges: create , view , control , edit , delete , businessAutomationAPIstatic String
SEC_RANK_BUSINESSAUTOMATIONUSER
This rank is made of the following privileges: view , businessAutomationAPIstatic String
SEC_RANK_CREATE
This rank is made of the following privileges: createstatic String
SEC_RANK_DELETE
This rank is made of the following privileges: create , view , control , deletestatic String
SEC_RANK_EDIT
This rank is made of the following privileges: create , view , control , editstatic String
SEC_RANK_NONE
This rank has no privileges assigned to it.static String
SEC_RANK_VIEW
This rank is made of the following privileges: viewstatic QueryObjectType<SAPBAEConnector>
TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.static com.redwood.scheduler.infrastructure.logging.Versions
VERSION_SAPBAECONNECTOR
-
Fields inherited from interface com.redwood.scheduler.api.model.ApplicationObject
VERSION_APPLICATIONOBJECT
-
Fields inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
COPYRIGHT_MESSAGE_BKO, ID_BKO
-
Fields inherited from interface com.redwood.scheduler.api.model.NamedRootObject
VERSION_NAMEDROOTOBJECT
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.NamedRootObjectComp
VERSION_NAMEDROOTOBJECTCOMP
-
Fields inherited from interface com.redwood.scheduler.api.model.PartitionableObject
VERSION_PARTITIONABLEOBJECT
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.PartitionableObjectComp
VERSION_PARTITIONABLEOBJECTCOMP
-
Fields inherited from interface com.redwood.scheduler.api.model.Readable
COPYRIGHT_MESSAGE_E, ID_E
-
Fields inherited from interface com.redwood.scheduler.api.model.Root
VERSION_ROOT
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.SAPBAEConnectorComp
VERSION_SAPBAECONNECTORCOMP
-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM, VERSION_SCHEDULERENTITY
-
Fields inherited from interface com.redwood.scheduler.api.model.compatibility_14.SchedulerEntityComp
VERSION_SCHEDULERENTITYCOMP
-
Fields inherited from interface com.redwood.scheduler.api.model.UniqueNamedApplicationObject
VERSION_UNIQUENAMEDAPPLICATIONOBJECT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequiredPermission
checkBusinessAutomationAPIPrivilege()
Check whether or not the businessAutomationAPI action can be performed on this object.String[]
checkConnectString()
Check the connection string for validity.RequiredPermission
checkControlPrivilege()
Check whether or not the control action can be performed on this object.RequiredPermission
checkCreatePrivilege()
Check whether or not the create action can be performed on this object.RequiredPermission
checkDeletePrivilege()
Check whether or not the delete action can be performed on this object.RequiredPermission
checkEditPrivilege()
Check whether or not the edit action can be performed on this object.RequiredPermission
checkViewPrivilege()
Check whether or not the view action can be performed on this object.SAPBAEConfiguration
createSAPBAEConfiguration()
Create a newSAPBAEConfiguration
linked to this object.SAPNWCallbackVariant
createSAPNWCallbackVariant()
Create a newSAPNWCallbackVariant
linked to this object.String
getConnectString()
Get the value for ConnectString.String
getMonitorRootPath()
Get the root path label to use for the SAP BAE Connector in the monitor tree.SAPBAEConfiguration
getSAPBAEConfiguration()
Get the SAPBAEConfiguration.SAPNWCallbackVariant
getSAPNWCallbackVariantByName(String name)
Get the SAPNWCallbackVariant by NameSAPSystem.SAPNWCallbackVariant
getSAPNWCallbackVariantBySearchName(String searchName)
Get the SAPNWCallbackVariant by SearchNameSAPSystem.RWIterable<SAPNWCallbackVariant>
getSAPNWCallbackVariants()
Get anRWIterable
over an ordered collection ofSAPNWCallbackVariants
.TimeZone
getSAPSystemTimeZone()
Get the SAPSystemTimeZone.ProcessServerStatus
getStatus()
Get the value for Status.boolean
isSNCConnection()
Check if the connection is using SNC.boolean
isStartOnStartup()
Get the value for StartOnStartup.void
setConnectString(String newConnectString)
Set the value for ConnectString.void
setSAPSystemTimeZone(TimeZone newSAPSystemTimeZone)
Set the value for SAPSystemTimeZone.void
setStartOnStartup(boolean newStartOnStartup)
Set the value for StartOnStartup.void
start()
Start the BAE connector.void
stop()
Stop the BAE connector normally.-
Methods inherited from interface com.redwood.scheduler.api.model.ApplicationObject
getParentApplication, setParentApplication
-
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
getBusinessKey
-
Methods inherited from interface com.redwood.scheduler.api.model.NamedRootObject
createObjectReference, getComment, getDescription, getLinkedObjectReferenceByLinkedObject, getLinkedObjectReferenceByName, getLinkedObjectReferences, getName, getSearchName, getSourceObjectReferences, isHidden, setComment, setDescription, setName
-
Methods inherited from interface com.redwood.scheduler.api.model.PartitionableObject
createObjectTag, getEditablePartitions, getObjectTagByObjectTagDefinition, getObjectTags, getPartition, setPartition
-
Methods inherited from interface com.redwood.scheduler.api.model.Root
getCreationTime, getLastModificationTime, getLastModifierSubject
-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
-
-
-
-
Field Detail
-
VERSION_SAPBAECONNECTOR
static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_SAPBAECONNECTOR
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()
for "SAPBAEConnector" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<SAPBAEConnector> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...)
.
-
SEC_PRIV_CREATE
static final String SEC_PRIV_CREATE
This privilege can be granted at a group level.- See Also:
- Constant Field Values
-
SEC_PRIV_VIEW
static final String SEC_PRIV_VIEW
This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
-
SEC_PRIV_CONTROL
static final String SEC_PRIV_CONTROL
This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
-
SEC_PRIV_EDIT
static final String SEC_PRIV_EDIT
This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
-
SEC_PRIV_DELETE
static final String SEC_PRIV_DELETE
This privilege can be granted at a group level. This privilege can be granted at an instance level.- See Also:
- Constant Field Values
-
SEC_PRIV_BUSINESSAUTOMATIONAPI
static final String SEC_PRIV_BUSINESSAUTOMATIONAPI
This privilege can be granted at an instance level.- See Also:
- Constant Field Values
-
SEC_RANK_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_CREATE
static final String SEC_RANK_CREATE
This rank is made of the following privileges: create- See Also:
- Constant Field Values
-
SEC_RANK_VIEW
static final String SEC_RANK_VIEW
This rank is made of the following privileges: view- See Also:
- Constant Field Values
-
SEC_RANK_ADMINISTRATOR
static final String SEC_RANK_ADMINISTRATOR
This rank is made of the following privileges: view , control- See Also:
- Constant Field Values
-
SEC_RANK_EDIT
static final String SEC_RANK_EDIT
This rank is made of the following privileges: create , view , control , edit- See Also:
- Constant Field Values
-
SEC_RANK_DELETE
static final String SEC_RANK_DELETE
This rank is made of the following privileges: create , view , control , delete- See Also:
- Constant Field Values
-
SEC_RANK_BUSINESSAUTOMATIONUSER
static final String SEC_RANK_BUSINESSAUTOMATIONUSER
This rank is made of the following privileges: view , businessAutomationAPI- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges: create , view , control , edit , delete , businessAutomationAPI- See Also:
- Constant Field Values
-
-
Method Detail
-
getConnectString
String getConnectString()
Get the value for ConnectString. (Connection string for reaching the ABAP stack of this SAP system) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
getStatus
ProcessServerStatus getStatus()
Get the value for Status. (The status of the BAE Connector.) This value is mandatory, and therefore will not benull
if this object has been retrieved from the database.- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
isStartOnStartup
boolean isStartOnStartup()
Get the value for StartOnStartup. (Start this BAE connector at system startup.)- Returns:
- the field
- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setConnectString
void setConnectString(String newConnectString)
Set the value for ConnectString. (Connection string for reaching the ABAP stack of this SAP system) This value is mandatory.- Parameters:
newConnectString
- the new value for ConnectString. If this isnull
, then the object cannot be persisted.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
setStartOnStartup
void setStartOnStartup(boolean newStartOnStartup)
Set the value for StartOnStartup. (Start this BAE connector at system startup.)- Parameters:
newStartOnStartup
- the new value for StartOnStartup.- Throws:
ObjectNotAttachedToSessionException
- This will be thrown if this method is called while the object is not attached to a session.
-
checkConnectString
String[] checkConnectString()
Check the connection string for validity.- Returns:
- Return an array with check results. An error is indicated by non-null array element. All elements of the array need to be checked.
-
start
void start()
Start the BAE connector.
-
stop
void stop()
Stop the BAE connector normally.
-
getMonitorRootPath
String getMonitorRootPath()
Get the root path label to use for the SAP BAE Connector in the monitor tree. Depends on the configuration/Monitoring/MonitorRootPath registry key: (a) KeyValue = PartitionColonNonGlobal (default) -> if partition is GLOBAL return SAPBAEConnectorName else return Partition:SAPBAEConnectorName. (b) KeyValue = PartitionColonAlways -> Always return Partition:SAPBAEConnectorName. (c) KeyValue = PartitionPathAlways -> Always return Partition/SAPBAEConnectorName.- Returns:
- The String to use as the root path in the monitor tree
-
isSNCConnection
boolean isSNCConnection()
Check if the connection is using SNC.- Returns:
true
if the connection is using SNC,false
otherwise
-
getSAPSystemTimeZone
TimeZone getSAPSystemTimeZone()
Get the SAPSystemTimeZone.- Returns:
- SAPSystemTimeZone
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
setSAPSystemTimeZone
void setSAPSystemTimeZone(TimeZone newSAPSystemTimeZone)
Set the value for SAPSystemTimeZone. This value is mandatory.- Parameters:
newSAPSystemTimeZone
- is the object to set SAPSystemTimeZone to. Which TimeZone will be ascribed to the Jobs DateTimeZone fields by default. If this isnull
, then the object cannot be persisted.
-
getSAPNWCallbackVariants
RWIterable<SAPNWCallbackVariant> getSAPNWCallbackVariants()
Get anRWIterable
over an ordered collection ofSAPNWCallbackVariants
. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull
. NW callback variants of the SAP system.- Specified by:
getSAPNWCallbackVariants
in interfaceSAPBAEConnectorComp
- Returns:
- An
RWIterable
over an ordered collection ofSAPNWCallbackVariant
objects .
-
createSAPNWCallbackVariant
SAPNWCallbackVariant createSAPNWCallbackVariant()
Create a newSAPNWCallbackVariant
linked to this object.- Returns:
- a new
SAPNWCallbackVariant
.
-
getSAPNWCallbackVariantByName
SAPNWCallbackVariant getSAPNWCallbackVariantByName(String name)
Get the SAPNWCallbackVariant by NameSAPSystem.- Parameters:
name
-- Returns:
- the SAPNWCallbackVariant, or
null
if it could not be found
-
getSAPNWCallbackVariantBySearchName
SAPNWCallbackVariant getSAPNWCallbackVariantBySearchName(String searchName)
Get the SAPNWCallbackVariant by SearchNameSAPSystem.- Parameters:
searchName
-- Returns:
- the SAPNWCallbackVariant, or
null
if it could not be found
-
getSAPBAEConfiguration
SAPBAEConfiguration getSAPBAEConfiguration()
Get the SAPBAEConfiguration. SAP BAE configuration for a SAP BAE connector.- Returns:
- nullSAPBAEConfiguration
- Throws:
ObjectDeletedException
- If this method is called when the object has been marked for deletion.ObjectNotAttachedToSessionException
- If this method is called when the object has been removed from it's session.
-
createSAPBAEConfiguration
SAPBAEConfiguration createSAPBAEConfiguration()
Create a newSAPBAEConfiguration
linked to this object.- Returns:
- a new
SAPBAEConfiguration
.
-
checkCreatePrivilege
RequiredPermission checkCreatePrivilege()
Check whether or not the create action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkViewPrivilege
RequiredPermission checkViewPrivilege()
Check whether or not the view action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkControlPrivilege
RequiredPermission checkControlPrivilege()
Check whether or not the control action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkEditPrivilege
RequiredPermission checkEditPrivilege()
Check whether or not the edit action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkDeletePrivilege
RequiredPermission checkDeletePrivilege()
Check whether or not the delete action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
checkBusinessAutomationAPIPrivilege
RequiredPermission checkBusinessAutomationAPIPrivilege()
Check whether or not the businessAutomationAPI action can be performed on this object.- Returns:
- a
RequiredPermission
instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
-
-