|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.tws.objects.model.Resource
The Resource object, representing a TWS logical resource, wraps a ResourceHeader that in turn wraps a ResourceKey, which references the target workstation or workstation class through a FlowTargetKey.
The following syntax validation constraints must be met on Resource objects in distributed environment:
name | Always required |
Alphanumeric characters | |
'-' and '_' characters allowed | |
Can't start with character '-' or '_' | |
Blank spaces not allowed | |
Not longer than 8 characters | |
flowTargetKey | Must reference an existing workstation or class |
description | Not longer than 120 characters |
defaultConstraints | See ResourceBaseConstraints for constraints on this field |
The following syntax validation constraints must be met on Resource objects in z/OS environment:
name | Always required |
Not longer than 44 characters | |
description | Not longer than 46 characters |
flowTargetKey | N/A |
defaultConstraints | See ResourceBaseConstraints for constraints on this field |
resourceAvailabilityIntervals | A list of ResourceAvailabilityInterval objects |
See ResourceAvailabilityInterval for constraints on this field | |
connectedWorkstationLinks | A list of WorkstationLink objects |
See WorkstationLink for constraints on this field |
ResourceBaseConstraints
,
ResourceAvailabilityInterval
,
WorkstationLink
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
COPYRIGHT
Copyright. |
Constructor Summary | |
---|---|
Resource()
Creates an empty Resource. |
|
Resource(ResourceHeader resourceHeader)
Creates a Resource with the specified header. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Returns true if all fields of this Resource object are equal to those of the given one. |
java.util.List |
getConnectedWorkstationLinks()
Returns a reference to the list of the connected workstations for this resource. |
ResourceBaseConstraints |
getDefaultConstraints()
Returns the default resource constraints. |
java.lang.String |
getDescription()
Returns the resource description. |
Identifier |
getFlowTargetId()
Returns the identifier of the workstation or workstation class referenced by this resource. |
FlowTargetKey |
getFlowTargetKey()
Returns the key of the workstation or workstation class referenced by this resource. |
ResourceHeader |
getHeader()
Returns the ResourceHeader wrapped by this Resource object. |
Identifier |
getId()
Returns the resource identifier. |
ResourceKey |
getKey()
Returns the ResourceKey wrapped by this Resource object. |
LockData |
getLockData()
Returns the resource lock data. |
ModifyData |
getModifyData()
Returns the resource modification data. |
java.lang.String |
getName()
Returns the resource name. |
int |
getNumberOfAvailabilityIntervals()
Returns the number of availability intervals for this resource. |
int |
getNumberOfConnectedWorkstations()
Returns the number of connected workstations for this resource. |
TWSHeader |
getObjectHeader()
Returns the resource header as a TWS header. |
TWSKey |
getObjectKey()
Returns the resource key as a TWS key. |
java.util.List |
getResourceAvailabilityIntervals()
Returns a reference to the list of availability intervals for this resource. |
int |
hashCode()
Returns a hash code for this Resource object. |
void |
setDefaultConstraints(ResourceBaseConstraints constraints)
Sets the default resource constraints. |
void |
setDescription(java.lang.String value)
Sets the resource description. |
void |
setFlowTargetId(Identifier identifier)
Sets the identifier of the workstation or workstation class referenced by this resource. |
void |
setFlowTargetKey(FlowTargetKey trgKey)
Sets the key of the workstation or workstation class referenced by this resource. |
void |
setHeader(ResourceHeader resourceHeader)
Sets the ResourceHeader to be wrapped by this Resource object. |
void |
setId(Identifier identifier)
Sets the resource identifier. |
void |
setKey(ResourceKey resourceKey)
Sets the ResourceKey to be wrapped by this Resource object. |
void |
setLockData(LockData data)
Sets the resource lock data. |
void |
setModifyData(ModifyData data)
Sets the resource modification data. |
void |
setName(java.lang.String value)
Sets the resource name. |
java.lang.String |
toString()
Returns a string representation of this Resource object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public Resource()
public Resource(ResourceHeader resourceHeader)
resourceHeader
- The resource header.Method Detail |
public Identifier getId()
getId
in interface TWSObject
public TWSKey getObjectKey()
getObjectKey
in interface TWSObject
public TWSHeader getObjectHeader()
getObjectHeader
in interface TWSObject
public ResourceKey getKey()
public ResourceHeader getHeader()
public java.lang.String getName()
getName
in interface TWSObject
public FlowTargetKey getFlowTargetKey()
public java.lang.String getDescription()
public ResourceBaseConstraints getDefaultConstraints()
public ModifyData getModifyData()
getModifyData
in interface TWSObject
public LockData getLockData()
getLockData
in interface TWSObject
public Identifier getFlowTargetId()
public java.util.List getConnectedWorkstationLinks()
public int getNumberOfConnectedWorkstations()
public java.util.List getResourceAvailabilityIntervals()
public int getNumberOfAvailabilityIntervals()
public void setId(Identifier identifier)
identifier
- The resource identifier.public void setKey(ResourceKey resourceKey)
resourceKey
- The ResourceKey to be wrapped by this Resource object.public void setHeader(ResourceHeader resourceHeader)
resourceHeader
- The ResourceHeader to be wrapped by this Resource object.public void setName(java.lang.String value)
value
- The resource name.public void setFlowTargetKey(FlowTargetKey trgKey)
trgKey
- The key of the workstation or workstation class referenced by this resource.public void setDescription(java.lang.String value)
value
- The resource description.public void setDefaultConstraints(ResourceBaseConstraints constraints)
constraints
- The default resource constraints.public void setModifyData(ModifyData data)
data
- A ModifyData object.public void setLockData(LockData data)
data
- A LockData object.public void setFlowTargetId(Identifier identifier)
identifier
- The identifier of the workstation or workstation class referenced by this resource.public boolean equals(java.lang.Object object)
object
- The object to be compared with this one.
public int hashCode()
public java.lang.String toString()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |