public class ContentPrivacyMenu extends SimpleMenu
SimpleMenu.GalleryGroup, SimpleMenu.GalleryItem, SimpleMenu.UnresolvedItemClientSideElement.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, toStringgetLogger, setLoggerprotected 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 Serviceableservice in class SimpleMenuServiceExceptionpublic 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)