public class WOPredecessorUtil
extends java.lang.Object
psdi.app.workorde.WOTaskRelation
Constructor and Description |
---|
WOPredecessorUtil() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkDirectRelationship(MboRemote workorder,
java.lang.String wonum,
java.lang.String target)
Check direct relationships between source and target avoid direct circular relationship
|
void |
getAllChildren(MboRemote workorder,
java.lang.String wonum)
Will populate the exclude list with all children and children of each child.
|
void |
getAllChildrenToExclude(MboRemote workorder,
java.lang.String wonum)
Will populate the exclude list with all children and children of each child.
|
java.util.List<java.lang.String> |
getChildList() |
java.util.List<java.lang.String> |
getExcludedList() |
java.util.List<java.lang.String> |
getLinkList() |
java.lang.String |
getParent(MboRemote workorder,
java.lang.String wonum)
select parent list to avoid make a link with parents in the same package
|
void |
getRelationshipsDown(UserInfo userInfo,
java.lang.String predwonum) |
void |
getRelationshipsUp(UserInfo userInfo,
java.lang.String wonum)
Check circular references
|
MboRemote |
getWOMboFromWonum(java.lang.String wonum,
UserInfo userinfo)
Return the MboRemote of a WorkOrder from a given wonum
|
boolean |
hasALink(MboRemote workorder,
java.lang.String wonum)
Return is this links is has a link
|
boolean |
isALinked(MboRemote workorder,
java.lang.String wonum)
Return if this registry is a Link
|
void |
setChildList(java.util.List<java.lang.String> childList) |
void |
setExcludedList(java.util.List<java.lang.String> excludedList) |
void |
setLinkList(java.util.List<java.lang.String> linkList) |
boolean |
validateLink(MboRemote workorder,
java.lang.String wonum,
java.lang.String target)
Main function to validate: - Circular dependencies - Parent link
|
public java.util.List<java.lang.String> getExcludedList()
public void setExcludedList(java.util.List<java.lang.String> excludedList)
public java.util.List<java.lang.String> getChildList()
public void setChildList(java.util.List<java.lang.String> childList)
public java.util.List<java.lang.String> getLinkList()
public void setLinkList(java.util.List<java.lang.String> linkList)
public boolean validateLink(MboRemote workorder, java.lang.String wonum, java.lang.String target) throws java.rmi.RemoteException, MXException
workorder
- Source mbo.wonum
- Source wonum recordtarget
- Target relationshipMXException
java.rmi.RemoteException
public void getRelationshipsUp(UserInfo userInfo, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder
- wonum
- target
- java.rmi.RemoteException
MXException
public void getRelationshipsDown(UserInfo userInfo, java.lang.String predwonum) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public boolean checkDirectRelationship(MboRemote workorder, java.lang.String wonum, java.lang.String target) throws java.rmi.RemoteException, MXException
workorder
- wonum
- target
- java.rmi.RemoteException
MXException
public java.lang.String getParent(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder
- wonum
- java.rmi.RemoteException
MXException
public void getAllChildrenToExclude(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder
- wonum
- java.rmi.RemoteException
MXException
public void getAllChildren(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder
- wonum
- java.rmi.RemoteException
MXException
public MboRemote getWOMboFromWonum(java.lang.String wonum, UserInfo userinfo) throws java.rmi.RemoteException, MXException
wonum
- userinfo
- java.rmi.RemoteException
MXException
public boolean isALinked(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder
- wonum
- java.rmi.RemoteException
MXException
public boolean hasALink(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder
- wonum
- java.rmi.RemoteException
MXException