|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProviderSubstitutionManager
This interface defines the substitution actions supported in provider systems.
The IProviderSubstitutionManager interface should be implemented by respective
provider system if substitution feature is to be made available in UWL.
| Field Summary | |
|---|---|
static String |
AWF_SUBSTITUTION_MGR_ID
AdHow Workflow Substitution Manager id |
static String |
BWF_SUBSTITUTION_MGR_ID
Business Workflow Substitution Manager id |
static String |
DEFAULT_PROFILE_ALL
Default substitution profile. |
static int |
MODE_RECEIVETASKS
|
static int |
MODE_TAKEOVER
|
static int |
MODE_UNDEFINED
|
| Method Summary | |
|---|---|
void |
createSubstitution(UWLContext ctx,
Substitution sub)
Create the specified substitution definition for the original user. |
void |
endTakeOver(UWLContext ctx,
AssignedSubstitution assignedSubstitution)
This method terminates the previously taken-over substitution for the original user by this user. |
List |
getAllSubstitutions(UWLContext ctx,
String system)
Look up all the substitutions defined for a user of this context. |
List |
getAssignedSubstitutions(UWLContext ctx,
String system)
To look up if the user himself/herself has been assigned as a substitute for other colleague(s) at the time of query. |
String |
getId()
Every IProviderSubstitutionManager should identify itself with a unique identifer. |
SubstitutionProfile[] |
getSubProfiles(UWLContext ctx,
String system)
Return a list of unique available substitution profiles available of a system from the provider. |
List |
getSubstitutions(UWLContext ctx,
String system,
String profileId)
Look up all the substitutions defined for a user of this context, defined for a particular substitution profile. |
void |
removeSubstitution(UWLContext ctx,
Substitution substitution)
Delete precisely the specified substitution definition If the substitution does not exist, return silent. |
boolean |
supportOnOff()
Return true if switching on/off feature is supported, otherwise false. |
void |
switchOffSubstitution(UWLContext ctx,
Substitution substitution)
Switch off the specified substitution definition. |
void |
switchOnSubstitution(UWLContext ctx,
Substitution substitution)
Switch on the specified substitution definition. |
void |
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 BWF_SUBSTITUTION_MGR_ID
static final String AWF_SUBSTITUTION_MGR_ID
static final String DEFAULT_PROFILE_ALL
| Method Detail |
|---|
String getId()
IProviderSubstitutionManager should identify itself with a unique identifer.
boolean supportOnOff()
SubstitutionProfile[] getSubProfiles(UWLContext ctx,
String system)
throws SubstitutionException
DEFAULT_PROFILE_ALL
ctx - contains locale data, not nullsystem - specifies the only system from which substitutions are to be retreived
SubProfile
when - there exists a problem in the provider system to get substitution profiles
SubstitutionException
List getAllSubstitutions(UWLContext ctx,
String system)
throws SubstitutionException
ctx - contains user information, not nullsystem - specifies the only system from which substitutions are to be retreived
Substitution.
Profile id should be replaced with NULL OR DEFAULT_PROFILE_ALL if no substitution profile
or the profile covers all tasks.
Return null if no definition exists.
when - there exists a problem in the provider system to get substitution definitions
SubstitutionException
List getSubstitutions(UWLContext ctx,
String system,
String profileId)
throws SubstitutionException
ctx - contains user information, not nullsystem - specifies the only system from which substitutions are to be retreivedprofileId - Substitution profile id. Null means 'All tasks' by default.
Substitution.
Profile id should be replaced with NULL OR DEFAULT_PROFILE_ALL if
the profile covers all tasks.
Return null if no definition exists.
when - there exists a problem in the provider system to get substitution definitions
SubstitutionException
void createSubstitution(UWLContext ctx,
Substitution sub)
throws SubstitutionException
ctx - contains user information, not nullsub - Substition definition. See Substitution. Profile id is DEFAULT_PROFILE_ALL
for covering all tasks or no profile substitution.
SubstitutionException
void removeSubstitution(UWLContext ctx,
Substitution substitution)
throws SubstitutionException
ctx - contains original user information, not nullsubstitution - contains the substitution definition. Profile id is DEFAULT_PROFILE_ALL
for covering all tasks or no profile substitution.
when - there exists a problem in the provider system to remove this substitution
SubstitutionException
void switchOnSubstitution(UWLContext ctx,
Substitution substitution)
throws SubstitutionException
ctx - contains original user information, not nullsubstitution - substitution to be switched on. Profile id is DEFAULT_PROFILE_ALL
for covering all tasks or no profile substitution.
when - there exists a general problem in the provider system to switch on the specified substitution
SubstitutionException
void switchOffSubstitution(UWLContext ctx,
Substitution substitution)
throws SubstitutionException
ctx - contains original user information, not nullsubstitution - substitution to be switched off. Profile id is DEFAULT_PROFILE_ALL
for covering all tasks or no profile substitution.
when - there exists a general problem in the provider system to switch off substitution
SubstitutionException
List getAssignedSubstitutions(UWLContext ctx,
String system)
throws SubstitutionException
ctx - contains substitute user information, not nullsystem - specifies the only system from which substitutions are to be retreived
AssignedSubstitution.
Profile id should be replaced with NULL OR DEFAULT_PROFILE_ALL if no substitution profile
or the profile covers all tasks.
Return null if no assignment exists.
SubstitutionException
void 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. Profile id is DEFAULT_PROFILE_ALL
for covering all tasks or no profile substitution.
throws - exception if take over fails (eg. Not exists) in the provider system.
SubstitutionException
void endTakeOver(UWLContext ctx,
AssignedSubstitution assignedSubstitution)
throws SubstitutionException
ctx - contains substitute user information that is ending the take over, not nullassignedSubstitution - contains information about the original user and profile. Profile id is DEFAULT_PROFILE_ALL
for covering all tasks or no profile substitution.
throws - exception if the termination of take over fails (eg. not exists) in the provider system.
SubstitutionException
|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||