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
_context
private org.slf4j.Logger
_logger
private ServiceManager
_manager
private PopulationContextHelper
_populationContextHelper
private RightManager
_rightManager
private SiteConfigurationManager
_siteConfigurationManager
private 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)
void
contextualize(Context context)
private org.slf4j.Logger
getLogger()
private PopulationContextHelper
getPopulationContextHelper()
boolean
isPerformed()
Checks if the step is performed.void
service(ServiceManager manager)
void
setLogger(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:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setLogger
public void setLogger(org.slf4j.Logger logger)
Description copied from interface:LogEnabled
Called at creation time to provide aLogger
.- Specified by:
setLogger
in interfaceLogEnabled
- Parameters:
logger
- aLogger
for 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:WelcomeStep
Checks if the step is performed.- Specified by:
isPerformed
in interfaceWelcomeStep
- Returns:
- true if the step is performed
-
_hasOneCorrectUser
private boolean _hasOneCorrectUser(String siteName, Set<UserIdentity> resolveAllowedUsers)
-
-