public class CoreContentManager extends ContentManagerImpl
ContentManager
Constructor and Description |
---|
CoreContentManager()
Constructor required for web services.
|
CoreContentManager(FdkSession session)
Constructor required for in-process clients.
|
Modifier and Type | Method and Description |
---|---|
void |
calculateConsumedQuota(long id)
Initiate the calculation of consumed quota
|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
Item |
getDefaultMedia(AttributeRequest[] attributes)
Return the default media defined in the system.
|
String |
getDefaultStorageGroup()
Return the default storage group name.
|
Item |
getMediaByName(String name,
AttributeRequest[] attributes)
Get media by name.
|
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
Item[] |
listMedias(AttributeRequest[] attributes)
List all media items defined in the system.
|
String[] |
listStorageGroups()
List all storage group names defined in the system.
|
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 |
requestQuotaUpdate(long id,
NamedValue[] wfParams,
NamedValue[] attrs,
AttributeRequest[] attributes)
Request an update to the existing quota on a workspace for non-admin user.
|
void |
updateQuota(long id,
NamedValue[] attrs)
Updates an existing quota.
|
public CoreContentManager()
public CoreContentManager(FdkSession session)
session
- session contextpublic Item[] listMedias(AttributeRequest[] attributes) throws FdkException
attributes
- Requested attributes of the medias.ItemTypes.MEDIA
type.FdkException
- if the opertaion fails.public Item getDefaultMedia(AttributeRequest[] attributes) throws FdkException
attributes
- Requested attributes of the media.ItemTypes.MEDIA
.FdkException
- if the opertaion fails.public Item getMediaByName(String name, AttributeRequest[] attributes) throws FdkException
name
- The name of the media to retrieve.attributes
- Requested attributes of the media.ItemTypes.MEDIA
.FdkException
- if the opertaion fails.public String[] listStorageGroups() throws FdkException
FdkException
- if the operation fails.public String getDefaultStorageGroup() throws FdkException
null
if a default is not defined.FdkException
- if the operation fails.public void updateQuota(long id, NamedValue[] attrs) throws FdkException
id
- The id of the target to set the quota for;
must be the id of a Workspace or Domain.attrs
- The attributes to set .
must include one or more of the following Attributes:
FdkException
- if the operation fails.public void calculateConsumedQuota(long id) throws FdkException
id
- The id of the target to calculate the quota for;
must be the id of a Workspace or Domain.FdkException
- if the operation fails.public Item requestQuotaUpdate(long id, NamedValue[] wfParams, NamedValue[] attrs, AttributeRequest[] attributes) throws FdkException
id
- The id of the workspace to set the quota for.wfParams
- The parameters (name/value) needed to start workflow.attrs
- The attributes to set .
must include following Attributes:
attributes
- The requested attributesFdkException
- 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.