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 |
getChildList() |
java.util.List |
getExcludedList() |
java.util.List |
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 childList) |
void |
setExcludedList(java.util.List excludedList) |
void |
setLinkList(java.util.List 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 getExcludedList()
public void setExcludedList(java.util.List excludedList)
public java.util.List getChildList()
public void setChildList(java.util.List childList)
public java.util.List getLinkList()
public void setLinkList(java.util.List 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 relationshipMXExceptionjava.rmi.RemoteExceptionpublic void getRelationshipsUp(UserInfo userInfo, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder - wonum - target - java.rmi.RemoteExceptionMXExceptionpublic void getRelationshipsDown(UserInfo userInfo, java.lang.String predwonum) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic boolean checkDirectRelationship(MboRemote workorder, java.lang.String wonum, java.lang.String target) throws java.rmi.RemoteException, MXException
workorder - wonum - target - java.rmi.RemoteExceptionMXExceptionpublic java.lang.String getParent(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder - wonum - java.rmi.RemoteExceptionMXExceptionpublic void getAllChildrenToExclude(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder - wonum - java.rmi.RemoteExceptionMXExceptionpublic void getAllChildren(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder - wonum - java.rmi.RemoteExceptionMXExceptionpublic MboRemote getWOMboFromWonum(java.lang.String wonum, UserInfo userinfo) throws java.rmi.RemoteException, MXException
wonum - userinfo - java.rmi.RemoteExceptionMXExceptionpublic boolean isALinked(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder - wonum - java.rmi.RemoteExceptionMXExceptionpublic boolean hasALink(MboRemote workorder, java.lang.String wonum) throws java.rmi.RemoteException, MXException
workorder - wonum - java.rmi.RemoteExceptionMXException