public class AddSharedContentAction extends AbstractNotifierAction
Modifier and Type | Field and Description |
---|---|
protected ContentTypesAssignmentHandler |
_cTypesAssignmentHandler
The content types assignment handler.
|
protected AmetysObjectResolver |
_resolver
Ametys object resolver
|
protected SharedContentManager |
_sharedContentManager
The shared content manager.
|
_observationManager
manager
EMPTY_MAP
Constructor and Description |
---|
AddSharedContentAction() |
Modifier and Type | Method and Description |
---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected Content |
addContentReference(ModifiableZone zone,
Content content,
String metadataSetName)
Add the given content as a zone item in the given zone.
|
protected Content |
createSharedContent(ModifiableZone zone,
DefaultContent originalContent,
String metadataSetName)
Create a shared content referencing the given content and add the shared one to the zone.
|
void |
service(ServiceManager serviceManager) |
_getCurrentUser
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected SharedContentManager _sharedContentManager
protected ContentTypesAssignmentHandler _cTypesAssignmentHandler
protected AmetysObjectResolver _resolver
public AddSharedContentAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class AbstractNotifierAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected Content addContentReference(ModifiableZone zone, Content content, String metadataSetName)
zone
- the zone to add the content in.content
- the content to add.metadataSetName
- the metadata set name.protected Content createSharedContent(ModifiableZone zone, DefaultContent originalContent, String metadataSetName)
zone
- the zone to create the shared content in.originalContent
- the original content.metadataSetName
- the metadata set name.