Package wt.facade.persistedcollection
Interface PersistedCollectionService
- All Known Implementing Classes:
StandardPersistedCollectionService
PersistedCollectionService provides client-invokable methods to persisted
collection services. These methods are executed on the server side.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMember(PersistedCollectionHolder holder, Persistable member) Add a member to a checked out persisted collection holder.voidaddMembers(PersistedCollectionHolder holder, WTCollection members) Add members to a checked out persisted collection holder.voidaddSeed(PersistedCollectionHolder holder, Persistable seed) Add a seed to a checked out persisted collection holder.voidaddSeeds(PersistedCollectionHolder holder, WTCollection seeds) Add seeds to a checked out persisted collection holder.checkin(PersistedCollectionHolder holder) Check in a persisted collection holder.checkin(WTCollection holders) Check in a collection of persisted collection holders.checkout(PersistedCollectionHolder holder) Check out a persisted collection holder.checkout(WTCollection holders) Check out a collection of persisted collection holders.intCount the number of all members of a persisted collection holder.intCount the number of direct members of a persisted collection holder.intcountSeeds(PersistedCollectionHolder holder) Count the number of seeds of a persisted collection holder.Get deflated references to all members of a persisted collection.getAllMembers(PersistedCollectionMemberSelector memberSelector) Get deflated references to all members of a persisted collection.Get deflated references to direct members of a checked out persisted collection.getCheckedOutMembers(PersistedCollectionHolder holder, Boolean haveReadAccess) Get deflated references to direct members of a checked out persisted collection.Get deflated references to seeds of a checked out persisted collection.getCheckedOutSeeds(PersistedCollectionHolder holder, Boolean haveReadAccess) Get deflated references to seeds of a checked out persisted collection.Get the principal that checked out the persisted collection holder.Get deflated references to direct members of a persisted collection.getDirectMembers(PersistedCollectionMemberSelector memberSelector) Get deflated references to direct members of a persisted collection.getMemberGraph(PersistedCollectableHolder holder, AssociationDisplayAssistant displayAssistant) Get a graph of the collected members of a persisted collectable holder.Determines if the passed inPersistedCollectionHoldercurrently has a collector-based refresh queue.getSeeds(PersistedCollectionHolder holder) Get deflated references to seeds of a persisted collection.getSeeds(PersistedCollectionHolder holder, Boolean haveReadAccess) Get deflated references to seeds of a persisted collection.booleanDetermine if the current principal has read access to all members of a holder.booleanDetermine if the current principal has read access to direct members of a holder.booleanhasMembers(PersistedCollectionHolder holder) Determines if a persisted collection holder has members.booleanDetermine if a persisted collection has one or more nested collection members.booleanDetermine if the current principal has read access to all seeds of a holder.booleanhasSeeds(PersistedCollectionHolder holder) Determines if a persisted collection holder has seeds.haveNestedCollections(WTCollection holders) Determine which persisted collections have nested collection members.booleanDetermines if the passed inPersistedCollectionHoldercurrently has a refresh executing or pending execution on a collector-based refresh queue.voidRemove all members from a checked out persisted collection holder.voidRemove all seeds from a checked out persisted collection holder.voidremoveMember(PersistedCollectionHolder holder, Persistable member) Remove a member from a checked out persisted collection holder.voidremoveMembers(PersistedCollectionHolder holder, WTCollection members) Remove members from a checked out persisted collection holder.voidremoveSeed(PersistedCollectionHolder holder, Persistable seed) Remove a seed from a checked out persisted collection holder.voidremoveSeeds(PersistedCollectionHolder holder, WTCollection seeds) Remove seeds from a checked out persisted collection holder.Undo the check out of a persisted collection holder.undoCheckout(WTCollection holders) Undo the check out of a collection of persisted collection holders.
-
Method Details
-
countDirectMembers
Count the number of direct members of a persisted collection holder.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose count is to be returned.- Returns:
- Count of direct members from the latest check in. Does not include nested members.
- Throws:
WTException
-
countAllMembers
Count the number of all members of a persisted collection holder.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose count is to be returned.- Returns:
- Count of all members from the latest check in. Includes direct and nested members.
- Throws:
WTException
-
hasMembers
Determines if a persisted collection holder has members.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object.- Returns:
- True if holder contains one or more members from the latest check in, false if not.
- Throws:
WTException
-
hasDirectMemberAccess
Determine if the current principal has read access to direct members of a holder.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object.- Returns:
- True if the current principal has read permission for direct checked in members (does not include nested members), false if the principal lacks read permissions for one or more direct checked in members.
- Throws:
WTException
-
hasAllMemberAccess
Determine if the current principal has read access to all members of a holder.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object.- Returns:
- True if the current principal has read permission for all checked in members (including nested members), false if the principal lacks read permissions for one or more checked in members.
- Throws:
WTException
-
countSeeds
Count the number of seeds of a persisted collection holder.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose count is to be returned.- Returns:
- Count of seeds from the latest check in.
- Throws:
WTException
-
hasSeeds
Determines if a persisted collection holder has seeds.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object.- Returns:
- True if holder contains one or more seeds from the latest check in, false if not.
- Throws:
WTException
-
hasSeedAccess
Determine if the current principal has read access to all seeds of a holder.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object.- Returns:
- True if the current principal has read permission for all checked in seeds, false if the principal lacks read permissions for one or more checked in seeds.
- Throws:
WTException
-
getSeeds
Get deflated references to seeds of a persisted collection.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose seed references are to be returned. Changes to holder object must be persisted prior to calling this method.- Returns:
- Set of deflated Persistable references from the latest check in. Does not include nested seeds (i.e., seeds of nested collections). If no seeds are found then the returned set will be empty, but not null. The returned references are not checked for READ access.
- Throws:
WTException
-
getSeeds
Get deflated references to seeds of a persisted collection.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose seed references are to be returned. Changes to holder object must be persisted prior to calling this method.haveReadAccess- Controls READ access checks for the current principal. Set true to return only members having READ access, false to return only members lacking READ access, or null to skip access check.- Returns:
- Set of deflated Persistable references from the latest check in. Does not include nested seeds (i.e., seeds of nested collections). If no seeds are found then the returned set will be empty, but not null.
- Throws:
WTException
-
getCheckedOutSeeds
WTSet getCheckedOutSeeds(PersistedCollectionHolder holder) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Get deflated references to seeds of a checked out persisted collection.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose seed references are to be returned.- Returns:
- Set of Persistable references from the current state of a checked out collection. Reflects the additions and removals made since the collection was checked out. Does not include nested seeds (i.e., seeds of nested collections). If no seeds are found then the returned set will be empty, but not null. The returned references are not checked for READ access.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException- Thrown if persisted collection is not checked out.
-
getCheckedOutSeeds
WTSet getCheckedOutSeeds(PersistedCollectionHolder holder, Boolean haveReadAccess) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Get deflated references to seeds of a checked out persisted collection.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose seed references are to be returned.haveReadAccess- Controls READ access checks for the current principal. Set true to return only members having READ access, false to return only members lacking READ access, or null to skip access check.- Returns:
- Set of Persistable references from the current state of a checked out collection. Reflects the additions and removals made since the collection was checked out. Does not include nested seeds (i.e., seeds of nested collections). If no seeds are found then the returned set will be empty, but not null.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException- Thrown if persisted collection is not checked out.
-
getDirectMembers
Get deflated references to direct members of a persisted collection.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose member references are to be returned.- Returns:
- Set of deflated Persistable references from the latest check in. Does not include nested members (i.e., members of nested collections). If no members are found then the returned set will be empty, but not null. The returned references are not checked for READ access.
- Throws:
WTException
-
getDirectMembers
Get deflated references to direct members of a persisted collection.
Supported API: true- Parameters:
memberSelector- PersistedCollectionMemberSelector object with options to specify which members are returned.- Returns:
- Set of deflated Persistable references from the latest check in. Does not include nested members (i.e., members of nested collections). If no members are found then the returned set will be empty, but not null.
- Throws:
WTException
-
getAllMembers
Get deflated references to all members of a persisted collection.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose member references are to be returned.- Returns:
- Set of deflated Persistable references from the latest check in. Includes all direct and nested members. If no members are found then the returned set will be empty, but not null. The returned references are not checked for READ access.
- Throws:
WTException
-
getAllMembers
Get deflated references to all members of a persisted collection.
Supported API: true- Parameters:
memberSelector- PersistedCollectionMemberSelector object with options to specify which members are returned.- Returns:
- Set of deflated Persistable references from the latest check in. Includes all direct and nested members. If no members are found then the returned set will be empty, but not null.
- Throws:
WTException
-
getCheckedOutMembers
WTSet getCheckedOutMembers(PersistedCollectionHolder holder) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Get deflated references to direct members of a checked out persisted collection.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose member references are to be returned.- Returns:
- Set of Persistable references from the current state of a checked out collection. Reflects the additions and removals made since the collection was checked out. Does not include nested members (i.e., members of nested collections). If no members are found then the returned set will be empty, but not null. The returned references are not checked for READ access.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException- Thrown if persisted collection is not checked out.
-
getCheckedOutMembers
WTSet getCheckedOutMembers(PersistedCollectionHolder holder, Boolean haveReadAccess) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Get deflated references to direct members of a checked out persisted collection.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object whose member references are to be returned.haveReadAccess- Controls READ access checks for the current principal. Set true to return only members having READ access, false to return only members lacking READ access, or null to skip access check.- Returns:
- Set of Persistable references from the current state of a checked out collection. Reflects the additions and removals made since the collection was checked out. Does not include nested members (i.e., members of nested collections). If no members are found then the returned set will be empty, but not null.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException- Thrown if persisted collection is not checked out.
-
hasNestedCollection
Determine if a persisted collection has one or more nested collection members.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object.- Returns:
- True if the latest check of the specified persisted collection has one or more nested collections (from latest check in), false if no nested collection members.
- Throws:
WTException
-
haveNestedCollections
Determine which persisted collections have nested collection members.
Supported API: true- Parameters:
holders- Collection of holders to have their memberships checked for nested members.- Returns:
- Subset of PersistedCollectionHolder references from the input collection that have one or more nested collection members (from their latest check ins). If no nested members are found then the returned set will be empty, but not null. The returned references will only be inflated if the input collection is inflated.
- Throws:
WTException
-
checkout
PersistedCollectionHolder checkout(PersistedCollectionHolder holder) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Check out a persisted collection holder.
Supported API: true- Parameters:
holder- Holder to be checked out. Changes to holder object must be persisted prior to calling this method.- Returns:
- Updated holder object.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
checkout
WTCollection checkout(WTCollection holders) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Check out a collection of persisted collection holders.
Supported API: true- Parameters:
holders- Collection of holders to be checked out. Changes to holder objects must be persisted prior to calling this method.- Returns:
- Collection of updated holder objects.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
getCheckoutPrincipal
WTPrincipal getCheckoutPrincipal(PersistedCollectionHolder holder) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Get the principal that checked out the persisted collection holder.
Supported API: true- Parameters:
holder- PersistedCollectionHolder object (must be checked out).- Returns:
- WTPrincipal that checked out the holder.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException- Thrown if holder is not checked out.
-
checkin
PersistedCollectionHolder checkin(PersistedCollectionHolder holder) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Check in a persisted collection holder.
Supported API: true- Parameters:
holder- Holder to be checked in. Changes to holder object must be persisted prior to calling this method.- Returns:
- Updated holder object.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
checkin
WTCollection checkin(WTCollection holders) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Check in a collection of persisted collection holders.
Supported API: true- Parameters:
holders- Collection of holders to be checked in. Changes to holder objects must be persisted prior to calling this method.- Returns:
- Collection of updated holder objects.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
undoCheckout
PersistedCollectionHolder undoCheckout(PersistedCollectionHolder holder) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Undo the check out of a persisted collection holder. All changed made to the persisted collection holder during the check out session are lost.
Supported API: true- Parameters:
holder- Holder to be have its check out undone. Changes to holder object must be persisted prior to calling this method.- Returns:
- Updated holder object.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
undoCheckout
WTCollection undoCheckout(WTCollection holders) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Undo the check out of a collection of persisted collection holders. All changes made to the persisted collection holders during the check out sessions are lost.
Supported API: true- Parameters:
holders- Collection of holders to have their check outs undone. Changes to holder objects must be persisted prior to calling this method.- Returns:
- Collection of updated holder objects.
- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
addSeed
void addSeed(PersistedCollectionHolder holder, Persistable seed) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Add a seed to a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.seed- Persistable object to be added. Objects already in the persisted collection will be ignored.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
addSeeds
void addSeeds(PersistedCollectionHolder holder, WTCollection seeds) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Add seeds to a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.seeds- Collection of Persistable objects to be added. Objects already in the persisted collection will be ignored.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
removeSeed
void removeSeed(PersistedCollectionHolder holder, Persistable seed) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Remove a seed from a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.seeds- Persistable object to be removed. Objects not in the persisted collection will be ignored.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
removeSeeds
void removeSeeds(PersistedCollectionHolder holder, WTCollection seeds) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Remove seeds from a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.seeds- Persistable seeds to be removed. Objects not in the persisted collection will be ignored.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
removeAllSeeds
void removeAllSeeds(PersistedCollectionHolder holder) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Remove all seeds from a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
addMember
void addMember(PersistedCollectionHolder holder, Persistable member) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Add a member to a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.member- Persistable object to be added (must be PersistedCollectable for PersistedCollectableHolder). Objects already in the persisted collection will be ignored.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
addMembers
void addMembers(PersistedCollectionHolder holder, WTCollection members) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Add members to a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.members- Collection of Persistable objects to be added (must be PersistedCollectable for PersistedCollectableHolder, will not be inflated). Objects already in the persisted collection will be ignored.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
removeMember
void removeMember(PersistedCollectionHolder holder, Persistable member) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Remove a member from a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.members- Persistable object to be removed (must be PersistedCollectable for PersistedCollectableHolder). Objects not in the persisted collection will be ignored.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
removeMembers
void removeMembers(PersistedCollectionHolder holder, WTCollection members) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Remove members from a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.members- Collection of Persistable objects to be removed (must be PersistedCollectable for PersistedCollectableHolder, will not be inflated). Objects not in the persisted collection will be ignored.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
removeAllMembers
void removeAllMembers(PersistedCollectionHolder holder) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Remove all members from a checked out persisted collection holder.
Supported API: true- Parameters:
holder- Holder object (must be checked out before calling). Changes to holder object must be persisted prior to calling this method.- Throws:
WTExceptionwt.facade.persistedcollection.PersistedCollectionException
-
getMemberGraph
PersistedCollectionMemberGraph getMemberGraph(PersistedCollectableHolder holder, AssociationDisplayAssistant displayAssistant) throws WTException, wt.facade.persistedcollection.PersistedCollectionException Get a graph of the collected members of a persisted collectable holder. The graph gives the parent-child relationships used by collector to navigate to the members. The graph may have multiple roots, corresponding to multiple seed objects. Each parent-child relationship in the graph has a role key to indicate how the collector navigated from the parent to the child object. May only be called for holders that store soft filtering data.
Supported API: true- Parameters:
holder- PersistedCollectableHolder for which to get the collected member graph.displayAssistant- AssociationDisplayAssistant used to used to obtain localized display values for the roles keys stored in the member graph (null for default display assistant).- Returns:
- Graph of all collected members in the holder. Object references in the member graph will initially be deflated.
- Throws:
wt.facade.persistedcollection.PersistedCollectionException- Thrown when called for a holder that does not store soft filtering data.WTException- See Also:
-
isRefreshExecutingInBackground
Determines if the passed inPersistedCollectionHoldercurrently has a refresh executing or pending execution on a collector-based refresh queue. Returns true if a pending refresh task exists; returns false otherwise
Supported API: true- Parameters:
objRef- reference toPersistedCollectionHolderto check- Returns:
- true if refresh task exists for the holder, false if not
- Throws:
WTExceptionIllegalArgumentException- if reference is not to aPersistedCollectionHolderNullPointerException- if reference parameter is null
-
getRefreshExecutingInBackgroundQueueStatus
String getRefreshExecutingInBackgroundQueueStatus(ObjectReference objRef) throws WTException, IllegalArgumentException, NullPointerException Determines if the passed inPersistedCollectionHoldercurrently has a collector-based refresh queue. Returns status of this queue.
Supported API: true- Parameters:
objRef- reference toPersistedCollectionHolderto check- Returns:
- string with status
- Throws:
WTExceptionIllegalArgumentException- if reference is not to aPersistedCollectionHolderNullPointerException- if reference parameter is null
-