public class HubShareDelegate extends Object
Constructor and Description |
---|
HubShareDelegate() |
Modifier and Type | Method and Description |
---|---|
protected static void |
_addSharedHub(Hub thisHub,
Hub hub) |
protected static void |
_removeSharedHub(Hub sharedHub,
Hub hub) |
protected static void |
_setSharedHub(Hub thisHub,
Hub sharedMasterHub,
boolean shareActiveObject,
Object newLinkValue) |
static void |
addSharedHub(Hub thisHub,
Hub hub)
Remove shared Hub from list of shared Hubs.
|
static Hub |
createSharedHub(Hub thisHub,
boolean bShareActive) |
static Hub[] |
getAllSharedHubs(Hub thisHub)
List of Hubs that are sharing the same objects as this Hub.
|
static Hub[] |
getAllSharedHubs(Hub thisHub,
boolean bChildrenOnly) |
static Hub[] |
getAllSharedHubs(Hub thisHub,
boolean bChildrenOnly,
OAFilter<Hub> filter) |
static Hub[] |
getAllSharedHubs(Hub thisHub,
boolean bChildrenOnly,
OAFilter<Hub> filter,
boolean bIncludeFilteredHubs,
boolean bOnlyIfSharedAO)
Used to get all Hubs that share the same data.
|
static Hub[] |
getAllSharedHubs(Hub thisHub,
OAFilter<Hub> filter) |
static Hub |
getFirstSharedHub(Hub thisHub,
OAFilter<Hub> filter,
boolean bIncludeFilteredHubs,
boolean bOnlyIfSharedAO) |
static HubCopy |
getHubCopy(Hub thisHub) |
static HubFilter |
getHubFilter(Hub thisHub) |
static HubShareAO |
getHubShareAO(Hub thisHub) |
static Hub |
getMainSharedHub(Hub hub) |
static Hub |
getSharedHub(Hub thisHub,
boolean bIncludeFilteredHubs,
boolean bOnlyIfSharedAO) |
protected static Hub[] |
getSharedHubs(Hub thisHub)
Deprecated.
use getAllSharedHubs, or one of the other methods
|
static WeakReference<Hub>[] |
getSharedWeakHubs(Hub thisHub) |
static int |
getSharedWeakHubSize(Hub thisHub) |
static boolean |
isUsingSameSharedAO(Hub hub1,
Hub hub2) |
static boolean |
isUsingSameSharedAO(Hub hub1,
Hub hub2,
boolean bIncludeFilteredHubs) |
static boolean |
isUsingSameSharedHub(Hub hub1,
Hub hub2) |
static void |
main(String[] args) |
protected static void |
removeSharedHub(Hub sharedHub,
Hub hub) |
static void |
setSharedHub(Hub thisHub,
Hub sharedMasterHub,
boolean shareActiveObject)
Navigational method used to create a shared version of another Hub, so that this Hub
will use the same objects as the shared hub.
|
protected static void |
setSharedHub(Hub thisHub,
Hub sharedMasterHub,
boolean shareActiveObject,
Object newLinkValue) |
protected static void |
setSharedHubsAfterRemove(Hub thisHub,
Object objRemoved,
int posRemoved)
Used to set the active object in all shared Hubs after an object is removed.
|
protected static void |
setSharedHubsAfterRemoveAll(Hub thisHub) |
protected static void |
syncSharedHubs(Hub thisHub,
boolean bShareActiveObject,
com.viaoa.hub.HubDataActive daOld,
com.viaoa.hub.HubDataActive daNew,
boolean bUpdateLink) |
public static Hub[] getAllSharedHubs(Hub thisHub)
public static Hub[] getAllSharedHubs(Hub thisHub, boolean bChildrenOnly, OAFilter<Hub> filter)
public static Hub[] getAllSharedHubs(Hub thisHub, boolean bChildrenOnly, OAFilter<Hub> filter, boolean bIncludeFilteredHubs, boolean bOnlyIfSharedAO)
thisHub
- bChildrenOnly
- only include Hubs that are shared from thisHub. Otherwise, go to root of shared hubsfilter
- used to determine if a shared hub that is found should be included.bIncludeFilteredHubs
- if true then HubFilter will also be includepublic static HubShareAO getHubShareAO(Hub thisHub)
public static Hub getSharedHub(Hub thisHub, boolean bIncludeFilteredHubs, boolean bOnlyIfSharedAO)
public static Hub getFirstSharedHub(Hub thisHub, OAFilter<Hub> filter, boolean bIncludeFilteredHubs, boolean bOnlyIfSharedAO)
public static boolean isUsingSameSharedAO(Hub hub1, Hub hub2, boolean bIncludeFilteredHubs)
protected static void syncSharedHubs(Hub thisHub, boolean bShareActiveObject, com.viaoa.hub.HubDataActive daOld, com.viaoa.hub.HubDataActive daNew, boolean bUpdateLink)
protected static void setSharedHubsAfterRemoveAll(Hub thisHub)
protected static void setSharedHubsAfterRemove(Hub thisHub, Object objRemoved, int posRemoved)
public static void setSharedHub(Hub thisHub, Hub sharedMasterHub, boolean shareActiveObject)
sharedMasterHub
- Hub that is to be shared.shareActiveObject
- true=use same activeObject as shared hub, false:use seperate activeObjectSharedHub
protected static void setSharedHub(Hub thisHub, Hub sharedMasterHub, boolean shareActiveObject, Object newLinkValue)
protected static void _setSharedHub(Hub thisHub, Hub sharedMasterHub, boolean shareActiveObject, Object newLinkValue)
public static void addSharedHub(Hub thisHub, Hub hub)
protected static Hub[] getSharedHubs(Hub thisHub)
public static WeakReference<Hub>[] getSharedWeakHubs(Hub thisHub)
public static int getSharedWeakHubSize(Hub thisHub)
public static void main(String[] args)
Copyright © 1999–2019 ViaOA. All rights reserved.