|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUWLSubstitutionManager
IUWLSubstitutionManager provides functionality to retrieve & update the substitution
information from and to the provider systems.
Called by the ui presentation level. Most logic is handled in this manager, including look up
of providers, their corresponding systems and to finetune the result format before returning them to the ui.
Substitution configuration data from providers is not cached but retrieved upon request for up-to-date info.
A handle to IUWLSubstitutionManager is got by calling
IUWLService.getSubstitutionManager() method.
| Field Summary | |
|---|---|
static String |
DEFAULT_PROFILE_ALL
Default substitution profile. |
static int |
MODE_RECEIVETASKS
|
static int |
MODE_TAKEOVER
|
static int |
MODE_UNDEFINED
|
static String |
UWL_SESSION_ID
|
| Method Summary | |
|---|---|
SubstitutionResult |
createSubstitution(UWLContext ctx,
Substitution substitution)
Create a single substitution definition for the original user. |
SubstitutionResult |
endTakeOver(UWLContext ctx,
AssignedSubstitution assignedSubstitution)
This method terminates the previously taken-over substitution for the original user by this user. |
List |
getAllAssignedSubstitutionResults(UWLContext ctx)
To look up if the user himself/herself has been assigned as a substitute for other colleague(s) at the time of query. |
List |
getAllSubstitutionResults(UWLContext ctx)
Look up all the substitution results defined for a user, combined for all systems. |
List |
getAllSubstitutions(UWLContext ctx)
Look up all the substitutions defined for a user. |
List |
getAssignedSubstitutions(UWLContext ctx)
To look up if the user himself/herself has been assigned as a substitute for other colleague(s) at the time of query. |
SubstitutionProfile |
getSubProfile(UWLContext ctx,
String profileId)
Return detailed substitution profile data. |
SubstitutionProfile[] |
getSubProfiles(UWLContext ctx)
Return a list of CURRENTLY available substitution profiles from all provider systems. |
List |
getSubstitutions(UWLContext ctx,
String profileId)
Look up all the substitutions defined for a user defined for a particular substitution profile. |
Boolean |
hasExistingSubstitutionDefined(UWLContext ctx)
Return True if the user has currently existing substitution defined for other users, False otherwise. |
SubstitutionStatus |
reconnect(UWLContext ctx,
Substitution substitution)
Reconnect to a specific system and try to detect existence/create the substitution definition as defined |
SubstitutionResult |
removeSubstitution(UWLContext ctx,
Substitution substitution)
Delete a single substitution definition for the original user. |
boolean |
supportOnOff()
if AWF is registered, always return TRUE, otherwise, return FALSE. |
SubstitutionResult |
switchOffSubstitution(UWLContext ctx,
Substitution substitution)
Switch off the substitution definition. |
SubstitutionResult |
switchOnSubstitution(UWLContext ctx,
Substitution substitution)
Switch on a specific substitution definition.. |
SubstitutionResult |
takeOverSubstitution(UWLContext ctx,
AssignedSubstitution assignedSubstitution)
If another user has defined a ‘Take Over’ substitution mode for this user, this user can initiate a take over. |
| Field Detail |
|---|
static final int MODE_UNDEFINED
static final int MODE_TAKEOVER
static final int MODE_RECEIVETASKS
static final String UWL_SESSION_ID
static final String DEFAULT_PROFILE_ALL
| Method Detail |
|---|
SubstitutionProfile[] getSubProfiles(UWLContext ctx)
ctx - contains locale data, not null
SubProfile
SubstitutionProfile getSubProfile(UWLContext ctx,
String profileId)
ctx - contains locale data, not nullId - of the substitution profile defined in the provider system.
SubProfileboolean supportOnOff()
Boolean hasExistingSubstitutionDefined(UWLContext ctx)
ctx - contains user information, not nullList getAllSubstitutions(UWLContext ctx)
ctx - contains user information, not null
Substitution.
Substitution with no profile id or covering all tasks should have the
profile id initialized correctly with DEFAULT_PROFILE_ALL already.
All other profile ids are unique.
Return null if no definition exists.List getAllSubstitutionResults(UWLContext ctx)
ctx - contains user information, not null
Substitution.
Return null if no definition exists.
List getSubstitutions(UWLContext ctx,
String profileId)
ctx - contains user information, not nullsubProfile - Substitution profile. 'All tasks' must have the default DEFAULT_PROFILE_ALL
Substitution.
Return null if no definition exists.
SubstitutionResult createSubstitution(UWLContext ctx,
Substitution substitution)
throws SubstitutionException
ctx - contains user information, not nullsubstitution - Substition definition. See Substitution.
'All tasks' must have the default DEFAULT_PROFILE_ALL
SubstitutionException
SubstitutionResult removeSubstitution(UWLContext ctx,
Substitution substitution)
throws SubstitutionException
ctx - contains user information, not nullsubstitution - contain substitution definition
'All tasks' must have the default DEFAULT_PROFILE_ALL
when - there exists a problem in the provider system to remove this substitution
SubstitutionException
SubstitutionResult switchOnSubstitution(UWLContext ctx,
Substitution substitution)
throws SubstitutionException
ctx - contains user information, not nullsubstitution - contain substitution definition to be switched on
'All tasks' must have the default DEFAULT_PROFILE_ALL
when - there exists a general problem in the provider system to switch on substitution
SubstitutionException
SubstitutionResult switchOffSubstitution(UWLContext ctx,
Substitution substitution)
throws SubstitutionException
ctx - contains original user information, not nullsubstitution - substitution to be switched off.
'All tasks' must have the default DEFAULT_PROFILE_ALL
when - there exists a general problem in the provider system to switch off substitution
SubstitutionExceptionList getAssignedSubstitutions(UWLContext ctx)
ctx - contains substitute user information, not null
AssignedSubstitution.
Assigned substitution with no profile id or covering all tasks should have the
profile id initialized correctly with DEFAULT_PROFILE_ALL already.
All other profile ids are unique.
Null if no definition exists.List getAllAssignedSubstitutionResults(UWLContext ctx)
ctx - contains substitute user information, not null
AssignedSubstitution.
Null if no definition exists.
SubstitutionResult takeOverSubstitution(UWLContext ctx,
AssignedSubstitution assignedSubstitution)
throws SubstitutionException
ctx - contains substitute user information that is triggering the take over, not nullassignedSubstitution - contains information about the original user and profile
'All tasks' must have the default DEFAULT_PROFILE_ALL
throws - exception if take over fails (eg. Not exists) in the provider system.
SubstitutionException
SubstitutionResult endTakeOver(UWLContext ctx,
AssignedSubstitution assignedSubstitution)
throws SubstitutionException
ctx - contains substitute user information that is ending the take over, not null
'All tasks' must have the default DEFAULT_PROFILE_ALLassignedSubstitution - contains information about the original user and profile
SubstitutionException
SubstitutionStatus reconnect(UWLContext ctx,
Substitution substitution)
ctx - contains original user information, not nullsubstitution - substitution rule to be created again, WITH specific system id initialized
|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||