WorkSubstituteRule Class

com.bea.wli.worklist.api
WorkSubstituteRule Class

public final class WorkSubstituteRule

    extends Object
    implements Serializable

This class defines a work substitution rule.

A rule is composed of:
- a unique id.
- an effective date that specifies when the rule takes effect. Null if it is always effective.
- an expiry date that specifies when the rule expires. Null if it never expires.
- a source that is the user/group to be substituted.
- a target that is the substitute user/group.

If the source is a user, the target must be a user; if the source is a group, the target must be a group.

When a task is assigned to a user, the worklist looks for an eventual substitute. The rules can be chained.


Hierarchy
Object
  WorkSubstituteRule
All Implemented Interfaces

Serializable

Field Summary

public volatile int
hashCode
int
 

Constructor Summary

WorkSubstituteRule()

WorkSubstituteRule(String workSubstituteRuleId, Date effectiveDate, Date expiryDate, String source, String target)

 

Method Summary

public boolean
equals(Object other)
public Date
getEffectiveDate()
public Date
getExpiryDate()
public String
getSource()
public String
getTarget()
public String
getWorkSubstituteRuleId()
public int
hashCode()
public void
setEffectiveDate(Date effectiveDate)
public void
setExpiryDate(Date expiryDate)
public void
setSource(String source)
public void
setTarget(String target)
 
Methods from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

hashCode

public volatile int hashCode

 

Constructor Detail

WorkSubstituteRule

public WorkSubstituteRule()

WorkSubstituteRule

public WorkSubstituteRule(String workSubstituteRuleId, 
                          Date effectiveDate, 
                          Date expiryDate, 
                          String source, 
                          String target)
 

Method Detail

equals(Object) Method

public boolean equals(Object other)
Overrides
Object.equals(Object)

getEffectiveDate() Method

public Date getEffectiveDate()

getExpiryDate() Method

public Date getExpiryDate()

getSource() Method

public String getSource()

getTarget() Method

public String getTarget()

getWorkSubstituteRuleId() Method

public String getWorkSubstituteRuleId()

hashCode() Method

public int hashCode()
Overrides
Object.hashCode()

setEffectiveDate(Date) Method

public void setEffectiveDate(Date effectiveDate)

setExpiryDate(Date) Method

public void setExpiryDate(Date expiryDate)

setSource(String) Method

public void setSource(String source)

setTarget(String) Method

public void setTarget(String target)