Class SiteWithUserStep
- java.lang.Object
-
- org.ametys.web.administration.welcome.AbstractWelcomeStep
-
- org.ametys.web.administration.welcome.SiteWithUserStep
-
- All Implemented Interfaces:
LogEnabled,PluginAware,WelcomeStep,Configurable,Contextualizable,Serviceable
public class SiteWithUserStep extends AbstractWelcomeStep implements Serviceable, Contextualizable, LogEnabled
This step indicates that there is at least one well configured site with a user who has right to give its rights.
-
-
Field Summary
Fields Modifier and Type Field Description private Context_contextprivate org.slf4j.Logger_loggerprivate ServiceManager_managerprivate PopulationContextHelper_populationContextHelperprivate RightManager_rightManagerprivate SiteConfigurationManager_siteConfigurationManagerprivate SiteManager_siteManager-
Fields inherited from class org.ametys.web.administration.welcome.AbstractWelcomeStep
_actions, _description, _images, _order, _pluginName, _targetIds, _title
-
-
Constructor Summary
Constructors Constructor Description SiteWithUserStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private SiteConfigurationManager_getSiteConfigurationManager()private SiteManager_getSiteManager()private boolean_hasOneCorrectUser(String siteName, Set<UserIdentity> resolveAllowedUsers)voidcontextualize(Context context)private org.slf4j.LoggergetLogger()private PopulationContextHelpergetPopulationContextHelper()booleanisPerformed()Checks if the step is performed.voidservice(ServiceManager manager)voidsetLogger(org.slf4j.Logger logger)Called at creation time to provide aLogger.-
Methods inherited from class org.ametys.web.administration.welcome.AbstractWelcomeStep
configure, getActions, getDescription, getImages, getListenedTargetIds, getOrder, getTitle, setPluginInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.web.administration.welcome.WelcomeStep
toMap
-
-
-
-
Field Detail
-
_manager
private ServiceManager _manager
-
_siteManager
private SiteManager _siteManager
-
_siteConfigurationManager
private SiteConfigurationManager _siteConfigurationManager
-
_rightManager
private RightManager _rightManager
-
_populationContextHelper
private PopulationContextHelper _populationContextHelper
-
_logger
private org.slf4j.Logger _logger
-
-
Constructor Detail
-
SiteWithUserStep
public SiteWithUserStep()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setLogger
public void setLogger(org.slf4j.Logger logger)
Description copied from interface:LogEnabledCalled at creation time to provide aLogger.- Specified by:
setLoggerin interfaceLogEnabled- Parameters:
logger- aLoggerfor messages.
-
getLogger
private org.slf4j.Logger getLogger()
-
_getSiteManager
private SiteManager _getSiteManager()
-
_getSiteConfigurationManager
private SiteConfigurationManager _getSiteConfigurationManager()
-
getPopulationContextHelper
private PopulationContextHelper getPopulationContextHelper()
-
isPerformed
public boolean isPerformed()
Description copied from interface:WelcomeStepChecks if the step is performed.- Specified by:
isPerformedin interfaceWelcomeStep- Returns:
- true if the step is performed
-
_hasOneCorrectUser
private boolean _hasOneCorrectUser(String siteName, Set<UserIdentity> resolveAllowedUsers)
-
-