|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.repository.service.AbstractRepositoryService
com.sap.netweaver.coll.attachment.RepositoryAttachmentManager
public class RepositoryAttachmentManager
Interface for the attachment service. Attachments are stored as Files in the Repository "attachment". Copyright (c) SAP AG 2002
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sapportals.wcm.repository.service.AbstractRepositoryService |
|---|
AbstractRepositoryService.CONFIG_ATTRIBUTE_NAME |
| Field Summary |
|---|
| Fields inherited from class com.sapportals.wcm.repository.service.AbstractRepositoryService |
|---|
config, description, id, PARAMETER_ACTION, PARAMETER_FALSE, PARAMETER_IS_GLOBAL, PARAMETER_LOCATION, PARAMETER_POPUP, PARAMETER_PREFIX, PARAMETER_REPOSITORY, PARAMETER_RESOURCE, PARAMETER_SERVICE, PARAMETER_TRUE, properties, stateHandler |
| Fields inherited from interface com.sap.netweaver.coll.attachment.IRepositoryAttachment |
|---|
serviceName |
| Constructor Summary | |
|---|---|
RepositoryAttachmentManager()
Constructor for the GlobalAttachmentManager object |
|
| Method Summary | |
|---|---|
protected void |
addRepositoryAssignment(IRepositoryManager mgr)
Called by the framework if a new repository with services is added or the service was added to the list of an existing repository. |
void |
archive(com.sapportals.wcm.util.uri.RID resourceRID,
com.sapportals.wcm.util.uri.RID relativeNamespace,
com.sapportals.wcm.repository.service.archiving.IArchivingDelegate delegate)
|
int |
getAttachmentCount(IResource resource)
returns number of Attachments for a given Resource |
IAttachmentList |
getAttachmentList(IResource resource,
boolean create)
returns AttachmentList and may create one if it does not exist yet |
IAttachmentList |
getAttachmentList(IResource resource,
boolean create,
long lifetime)
returns AttachmentList and may create one if it does not exist yet |
protected IResourceContext |
getContext()
|
String |
getServiceType()
Get the service's service type, as defined in IWcmConfig. |
void |
received(IEvent event)
This method will be called by the broker with an event. |
void |
reconfigure(IConfiguration configuration)
Passes the new configuration data to the component. |
protected void |
shutDownImpl()
The implementation must overwrite this method if it has to release resources acquired during startup. |
protected void |
startUpImpl(Collection repositoryManagers)
Description of the Method |
| Methods inherited from class com.sapportals.wcm.repository.service.AbstractRepositoryService |
|---|
acceptServletCall, configure, convertConfigData, convertConfigToProperties, convertConfigToProperties, convertStatus, createPropertyList, getCreationDate, getDescription, getDescription, getID, getInstanceType, getLastConfigurationException, getLastReconfigurationDate, getName, getNextAutoRestartDate, getProperties, getStartupException, getState, notify, removeRepositoryAssignment, retrieveMonitorData, shutDown, start, startUp, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryAttachmentManager()
| Method Detail |
|---|
protected void addRepositoryAssignment(IRepositoryManager mgr)
AbstractRepositoryService
addRepositoryAssignment in class AbstractRepositoryServicemgr - The repository manager instance that this service was assigned
to in configuration.public String getServiceType()
IRepositoryService
getServiceType in interface IRepositoryServicepublic void received(IEvent event)
IEventReceiver
received in interface IEventReceiverevent - the event sent by the sender (maybe mapped, see IEventMapper).
public IAttachmentList getAttachmentList(IResource resource,
boolean create)
throws com.sapportals.wcm.WcmException
getAttachmentList in interface IRepositoryAttachmentresource - resource whose Attachment shall be handled (might be null)create - Shall AttachmentList be created
com.sapportals.wcm.WcmException
public IAttachmentList getAttachmentList(IResource resource,
boolean create,
long lifetime)
throws com.sapportals.wcm.WcmException
getAttachmentList in interface IRepositoryAttachmentresource - resource whose Attachment shall be handled (might be null)create - Shall AttachmentList be createdlifetime - lifetime of Attachments in millisecons (0 => never expires)
com.sapportals.wcm.WcmException
protected void startUpImpl(Collection repositoryManagers)
throws ConfigurationException,
StartupException
startUpImpl in class AbstractRepositoryServicerepositoryManagers - Description of the Parameter
ConfigurationException - Exception raised in failure situation
StartupException - Exception raised in failure situationprotected void shutDownImpl()
AbstractRepositoryServiceIStartable interface of the CRT this
method will be called only once. It will be called when the component is
removed from the persistent configuration or when the system shuts down.
shutDownImpl in class AbstractRepositoryService
public int getAttachmentCount(IResource resource)
throws com.sapportals.wcm.WcmException
getAttachmentCount in interface IRepositoryAttachmentresource - resource whose Attachments shall be counted
com.sapportals.wcm.WcmException
public void archive(com.sapportals.wcm.util.uri.RID resourceRID,
com.sapportals.wcm.util.uri.RID relativeNamespace,
com.sapportals.wcm.repository.service.archiving.IArchivingDelegate delegate)
throws com.sapportals.wcm.repository.service.archiving.ArchivingException
archive in interface com.sapportals.wcm.repository.service.archiving.IArchivingRMServicecom.sapportals.wcm.repository.service.archiving.ArchivingException
protected IResourceContext getContext()
throws ResourceException
ResourceException
public void reconfigure(IConfiguration configuration)
throws ConfigurationException
IReconfigurable
reconfigure in interface IReconfigurableconfiguration - The new configuration data.
ConfigurationException - Exception raised in failure situation
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||