|
SAP NetWeaver 7.11 (EhP1 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.AssignedSubstitution
public class AssignedSubstitution
Assigned Substitution. The user himself/herself can be assigned as a substitute for other colleague(s)
| Constructor Summary | |
|---|---|
AssignedSubstitution(String subProfileId,
String originalUserId,
int substitutionMode,
boolean alreadySubstituted)
Mainly to be used by UI. |
|
AssignedSubstitution(String providerId,
String subProfileId,
String originalUserId,
int substitutionMode,
boolean alreadySubstituted)
An assigned substitution with details of the assignment. |
|
AssignedSubstitution(String providerId,
String systemId,
String subProfileId,
String originalUserId,
int substitutionMode,
boolean alreadySubstituted)
An assigned substitution with details of the assignment. |
|
| Method Summary | |
|---|---|
void |
appendMessage(String msg)
append a message for this substitution |
AssignedSubstitution |
createCopy()
|
static AssignedSubstitution |
createInvalidInstance(String providerId,
String systemId,
String errMsg)
An easy api to create invalid assigned substitution. |
String |
getMessage()
Get a message for this substitution. |
String |
getOriginalUserId()
|
String |
getProviderId()
|
int |
getSubstitutionMode()
|
String |
getSubstitutionProfileId()
|
String |
getSystemId()
|
boolean |
hasAlreadySubstituted()
|
void |
invalidate()
Set the substitution to invalid |
boolean |
isValid()
|
void |
setMessage(String msg)
Set a message for this substitution |
void |
setProviderId(String providerId)
Set the provider Id |
void |
setSubstitutionProfileId(String subProfileId)
Set the Id of the substitution profile |
void |
setSystemId(String systemId)
Set the system Id |
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 AssignedSubstitution(String subProfileId,
String originalUserId,
int substitutionMode,
boolean alreadySubstituted)
subProfileId - Substitution profile id. Null for no substitution profile (that is all tasks)originalUserId - User id of the colleague assigning this substitutionsubstitutionMode - Substitution modealreadySubstituted - If the user has already substituted for the substitution.
Always true if the mode is "RECEIVE TASKS".
When mode is "TAKE OVER", return true if the user has already taken over, otherwise, false.
public AssignedSubstitution(String providerId,
String subProfileId,
String originalUserId,
int substitutionMode,
boolean alreadySubstituted)
providerId - Provider id. Cannot be null.subProfileId - Substitution profile id. Null for no substitution profile (that is all tasks)originalUserId - User id of the colleague assigning this substitutionsubstitutionMode - Substitution modealreadySubstituted - If the user has already substituted for the substitution.
Always true if the mode is "RECEIVE TASKS".
When mode is "TAKE OVER", return true if the user has already taken over, otherwise, false.
public AssignedSubstitution(String providerId,
String systemId,
String subProfileId,
String originalUserId,
int substitutionMode,
boolean alreadySubstituted)
providerId - Provider id. Cannot be null.systemId - System id of the provider. Can be nullsubProfileId - Substitution profile id. Null for no substitution profile (that is all tasks)originalUserId - User id of the colleague assigning this substitutionsubstitutionMode - Substitution modealreadySubstituted - If the user has already substituted for the substitution.
Always true if the mode is "RECEIVE TASKS".
When mode is "TAKE OVER", return true if the user has already taken over, otherwise, false.| Method Detail |
|---|
public static AssignedSubstitution createInvalidInstance(String providerId,
String systemId,
String errMsg)
providerId - Provider id.systemId - System id of the provider.message - Error message, if any.public AssignedSubstitution createCopy()
public String getProviderId()
getProviderId in interface IBaseSubstitutionpublic void setProviderId(String providerId)
public String getSystemId()
getSystemId in interface IBaseSubstitutionpublic void setSystemId(String systemId)
public String getSubstitutionProfileId()
getSubstitutionProfileId in interface IBaseSubstitutionpublic void setSubstitutionProfileId(String subProfileId)
setSubstitutionProfileId in interface IBaseSubstitutionpublic String getOriginalUserId()
public int getSubstitutionMode()
getSubstitutionMode in interface IBaseSubstitutionIProviderSubstitutionManager.MODE_RECEIVETASKS or
IProviderSubstitutionManager.MODE_TAKEOVERpublic boolean hasAlreadySubstituted()
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 IBaseSubstitution
|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||