|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WorkSubstituteManager
This class manages work substitute rules.
| Method Summary | |
|---|---|
String[] |
addWorkSubstituteRules(WorkSubstituteRule[] workSubstituteRules)
Add the substitution rules to the database. |
WorkSubstituteRule[] |
getAllWorkSubstituteRules()
Get all work substitution rules currently in the database. |
String |
getWorkSubstitute(String user,
Date date)
Get the substitute (target) for the given user (source) for the given date. |
WorkSubstituteRule |
getWorkSubstituteRule(String ruleId)
Get a work substitution rule. |
WorkSubstituteRule[] |
getWorkSubstituteRulesWithSource(String source)
Get all work substitution rules for the given source. |
WorkSubstituteRule[] |
getWorkSubstituteRulesWithTarget(String target)
Get all work substitution rules for the given target. |
void |
removeWorkSubstituteRules(String[] workSubstituteRuleIds)
Remove all the substitution rules from the database. |
void |
updateWorkSubstituteRules(WorkSubstituteRule[] rules)
Update work substitution rules. |
| Method Detail |
|---|
String[] addWorkSubstituteRules(WorkSubstituteRule[] workSubstituteRules)
throws ManagementException,
RemoteException
workSubstituteRules - containing rules to be added
ManagementException - if the operation failed
RemoteException - if the communication failed
void removeWorkSubstituteRules(String[] workSubstituteRuleIds)
throws ManagementException,
RemoteException
workSubstituteRuleIds - containing rule ids to be deleted
ManagementException - if the operation failed
RemoteException - if the communication failed
WorkSubstituteRule getWorkSubstituteRule(String ruleId)
throws ManagementException,
RemoteException
ruleId -
ManagementException - if the operation failed
RemoteException - if the communication failed
void updateWorkSubstituteRules(WorkSubstituteRule[] rules)
throws ManagementException,
RemoteException
rules -
ManagementException - if the operation failed
RemoteException - if the communication failed
WorkSubstituteRule[] getAllWorkSubstituteRules()
throws ManagementException,
RemoteException
ManagementException - if the operation failed
RemoteException - if the communication failed
WorkSubstituteRule[] getWorkSubstituteRulesWithSource(String source)
throws ManagementException,
RemoteException
source - (user or group)
ManagementException - if the operation failed
RemoteException - if the communication failed
WorkSubstituteRule[] getWorkSubstituteRulesWithTarget(String target)
throws ManagementException,
RemoteException
target - (user or group)
ManagementException - if the operation failed
RemoteException - if the communication failed
String getWorkSubstitute(String user,
Date date)
throws ManagementException,
RemoteException
user - containing the source user or group name
ManagementException - if the operation failed
RemoteException - if the communication failed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||