public class CoreCommonManager extends CommonManagerImpl
Constructor and Description |
---|
CoreCommonManager()
Constructor.
|
CoreCommonManager(FdkSession session) |
Modifier and Type | Method and Description |
---|---|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
Item |
getItem(long id,
AttributeRequest[] attributes)
Returns an Item given an Item ID and an array of AttributeRequests.
|
NamedValue[] |
getItemInvalidations(long[] addedIds,
long[] removedIds,
long[] setIds)
Gets the set of Item invalidations for items the session has
registered interest for.
|
Item[] |
getItems(long[] ids,
AttributeRequest[] attributes)
Returns an array of Items given an array of Item IDs and an array
of AttributeRequests.
|
long |
getUniqueId()
Returns a unique ID backed by a repository sequence.
|
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
protected NamedValue[] |
login(FdkCredential c,
NamedValue[] options,
AttributeRequest[] userAttributes)
Internal login method used by web services login managers.
|
void |
referenceTypes(TypeReference ref)
Dummy web service method to create a reference to data types used
in the web services to insure that they are defined in the WSDL.
|
public CoreCommonManager()
public CoreCommonManager(FdkSession session)
public Item getItem(long id, AttributeRequest[] attributes) throws FdkException
id
- the ID of the Item to return.attributes
- the attributes to retrieve for each Item.FdkException
- if the operation fails.public Item[] getItems(long[] ids, AttributeRequest[] attributes) throws FdkException
ids
- the IDs of the Items to return.attributes
- the attributes to retrieve for each Item.FdkException
- if the operation fails.public long getUniqueId() throws FdkException
FdkException
- if the operation fails.public NamedValue[] getItemInvalidations(long[] addedIds, long[] removedIds, long[] setIds) throws FdkException
Also specify an optional set of newly added IDs of interest, a set of IDs that the client no longer has interest, or the explicit set of IDs that the client has interest in. If a non-null explicit list is specified, the other two lists are ignored.
addedIds
- the new IDs of interestremovedIds
- the IDs that the client no longer has interest.setIds
- the total set IDs of interestFdkException
- if the operation fails.protected final boolean isWebServiceCall()
true
if the current call was made from a web services
client. This check can be made by any subclasses in order to determine
functionality and restrictions based on the originating call. This
feature should be used lightly and only where really necessary as
this is not an idea way of implementing business logic.public void referenceTypes(TypeReference ref)
protected final NamedValue[] login(FdkCredential c, NamedValue[] options, AttributeRequest[] userAttributes) throws FdkException
FdkException
protected final FdkSessionImpl getConnectedSession() throws FdkException
FdkException
Copyright © 2023. All rights reserved.