public class ContentPrivacyMenu extends SimpleMenu
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItem
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
private ContentHelper |
_contentHelper |
private ObservationManager |
_observationManager |
protected AmetysObjectResolver |
_resolver
Repository content
|
private SiteConfigurationExtensionPoint |
_siteConfigurationEP |
protected UserManager |
_userManager
Runtime users manager
|
_galleryItemManager, _galleryItems, _menuItemManager, _menuItems, _primaryMenuItem, _referencedClientSideElement, _ribbonControlManager, _smanager, _unresolvedMenuItems
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
ContentPrivacyMenu() |
Modifier and Type | Method and Description |
---|---|
private I18nizableText |
_getContentDescription(Content content,
String prefix) |
protected Map<String,Object> |
getContentDefaultParameters(Content content)
Get the default content's parameters
|
Map<String,Object> |
getStatus(List<String> contentIds)
Get the privacy status of contents
|
void |
service(ServiceManager smanager) |
void |
updatePrivacy(List<String> contentsId,
String level)
Update the privacy level of a list of contents
|
_addDependencies, _configureClass, _configureGalleries, _configureGroupGallery, _configureItemsMenu, _getGalleryItems, _getMenuItems, configure, getReferencedClientSideElements, getRights, getScripts
_configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected UserManager _userManager
protected AmetysObjectResolver _resolver
private SiteConfigurationExtensionPoint _siteConfigurationEP
private ObservationManager _observationManager
private ContentHelper _contentHelper
public ContentPrivacyMenu()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class SimpleMenu
ServiceException
public Map<String,Object> getStatus(List<String> contentIds)
contentIds
- the id of contentspublic void updatePrivacy(List<String> contentsId, String level)
contentsId
- The ids of the contentslevel
- The level of privacyprotected Map<String,Object> getContentDefaultParameters(Content content)
content
- The contentprivate I18nizableText _getContentDescription(Content content, String prefix)