public class CoreContainerManager extends ContainerManagerImpl
ContainerManager
Constructor and Description |
---|
CoreContainerManager() |
CoreContainerManager(FdkSession session) |
Modifier and Type | Method and Description |
---|---|
Item |
createContainer(long target,
NamedValue[] def,
AttributeRequest[] attributes)
Creates a new container.
|
void |
deleteContainer(long id,
NamedValue[] def)
Deletes a container.
|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
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.
|
Item |
updateContainer(long id,
NamedValue[] def,
AttributeRequest[] attributes)
Updates an existing container.
|
public CoreContainerManager()
public CoreContainerManager(FdkSession session)
public Item createContainer(long target, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
ContainerManager
Passing true for Options.CREATE_WORKSPACE_REQUEST_ALLOWED configures workflow, allowing the create workspace operation to be request enabled.
target
- the parent of the new container.def
- attributes on the container.
attributes
- the requested attributes for the itemFdkException
- if the operation fails.public Item updateContainer(long id, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
ContainerManager
id
- ID of the container to update.def
- container attributes to update:
FdkException
- if the operation fails.public void deleteContainer(long id, NamedValue[] def) throws FdkException
ContainerManager
id
- ID of the container to delete.def
- parameters for the delete operation:
FdkException
- 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.