|
SAP NetWeaver 7.30 (SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.substitution.Substitution
public class Substitution
Definition of a substitution.
Original user maintains the substitution definition for colleagues as substitutes to work on
his or her various unfinished tasks.
A substitution definition includes the following main attributes:
- Substitution profile
- Substitute user id
- Mode of substitution
- (optional) validity period
- on/off status
A substitution is mainly identified the substitution profile id, and the substitute id.
Default is receive my tasks mode, switched on and no validity period.
| Constructor Summary | |
|---|---|
Substitution(String providerId,
String substituteId)
Create a substitution definition, specifying the provider id, and the substitute user id, with 'Receive Task' mode, effective immediately and no expiration date, and switched on by default, withOUT any substitution profile. |
|
Substitution(String subProfileId,
String substituteId,
int substitutionMode,
Date startDate,
Date endDate,
boolean switchedOn)
Mainly to be used by UI. |
|
Substitution(String providerId,
String subProfileId,
String substituteId)
Create a substitution definition, specifying the provider id, and the substitute user id and substitution profile. |
|
Substitution(String providerId,
String systemId,
String subProfileId,
String substituteId)
Create a substitution definition, specifying the provider id, system id(if any) and the substitute user id and substitution profile. |
|
Substitution(String providerId,
String systemId,
String subProfileId,
String substituteId,
int substitutionMode,
Date startDate,
Date endDate,
boolean switchedOn)
Create a substitution definition, specifying the provider id, system id(if any) and the substitute user id and substitution profile, and with specific validity date range and substitution mode and switch on status. |
|
| Method Summary | |
|---|---|
void |
appendMessage(String msg)
append a message for this substitution |
Substitution |
createCopy()
|
static Substitution |
createInvalidInstance(String providerId,
String systemId,
String errMsg,
int errCode)
An easy api to create invalid substitution. |
int |
getCode()
Get the error code |
Date |
getEndDate()
|
String |
getMessage()
Get a message for this substitution. |
String |
getProviderId()
|
Date |
getStartDate()
|
String |
getSubstituteId()
|
int |
getSubstitutionMode()
|
String |
getSubstitutionProfileId()
|
String |
getSystemId()
|
void |
invalidate()
Set the substitution to invalid |
boolean |
isSwitchedOn()
|
boolean |
isValid()
|
void |
setCode(int code)
Set the code corresponding to the message. 0 as default for success. |
void |
setMessage(String msg)
Set a message for this substitution |
void |
setProviderId(String pId)
Set the Id of the provider substitution manager |
void |
setSubstitutionProfileId(String subProfileId)
Set the Id of the substitution profile |
void |
setSystemId(String systId)
Set the Id of the provider substitution manager |
void |
switchOff()
Set the substitution to OFF status. |
void |
switchOn()
Set the substitution to ON status. |
void |
validate()
Set the substitution to valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Substitution(String subProfileId,
String substituteId,
int substitutionMode,
Date startDate,
Date endDate,
boolean switchedOn)
subProfileId - Substitution profile idsubstituteId - user id of substitutesubstitutionMode - see IProviderSubstitutionManager.MODE_RECEIVETASKS or
IProviderSubstitutionManager.MODE_TAKEOVERstartDate - Null if definition is to be effectively immediatelyendDate - Null if no expiration date for the definitionswitchedOn - True if switched on, otherwise false.
public Substitution(String providerId,
String substituteId)
providerId - Provider id. Cannot be null.substituteId - user id of substitute
public Substitution(String providerId,
String subProfileId,
String substituteId)
providerId - Provider id. Cannot be null.subProfileId - Null for no substitution profile (that is all tasks)substituteId - user id of substitute
public Substitution(String providerId,
String systemId,
String subProfileId,
String substituteId)
providerId - Provider id. Cannot be null.systemId - System id of the provider. Can be null.subProfileId - Null for no substitution profile (that is all tasks)substituteId - user id of substitute
public Substitution(String providerId,
String systemId,
String subProfileId,
String substituteId,
int substitutionMode,
Date startDate,
Date endDate,
boolean switchedOn)
providerId - Provider id. Cannot be null.systemId - System id of the provider. Can be null.subProfileId - Substitution profile id. Null for no substitution profile (that is all tasks)substituteId - user id of substitutesubstitutionMode - see IProviderSubstitutionManager.MODE_RECEIVETASKS or
IProviderSubstitutionManager.MODE_TAKEOVERstartDate - Null if definition is to be effectively immediatelyendDate - Null if no expiration date for the definitionswitchedOn - True if switched on, otherwise false.| Method Detail |
|---|
public Substitution createCopy()
public static Substitution createInvalidInstance(String providerId,
String systemId,
String errMsg,
int errCode)
providerId - Provider id.systemId - System id of the provider.message - Error message, if any.public String getProviderId()
getProviderId in interface IBaseSubstitutionpublic void setProviderId(String pId)
public String getSystemId()
getSystemId in interface IBaseSubstitutionpublic void setSystemId(String systId)
public String getSubstitutionProfileId()
getSubstitutionProfileId in interface IBaseSubstitutionpublic void setSubstitutionProfileId(String subProfileId)
setSubstitutionProfileId in interface IBaseSubstitutionpublic String getSubstituteId()
public int getSubstitutionMode()
getSubstitutionMode in interface IBaseSubstitutionIProviderSubstitutionManager.MODE_RECEIVETASKS or
IProviderSubstitutionManager.MODE_TAKEOVERpublic Date getStartDate()
public Date getEndDate()
public boolean isSwitchedOn()
public void switchOn()
public void switchOff()
public boolean isValid()
isValid in interface IBaseSubstitutionpublic void validate()
public void invalidate()
public void setMessage(String msg)
public void appendMessage(String msg)
public String getMessage()
getMessage in interface IBaseSubstitutionpublic void setCode(int code)
public int getCode()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] UWLJWF
|
[sap.com] tc/kmc/bc.uwl/api
|
-
|
EP-BC-UWL
|
[sap.com] UWLJWF
|
[sap.com] tc/kmc/bc.uwl/api
|
default
|
EP-BC-UWL
|
|
SAP NetWeaver 7.30 (SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||