Package org.ametys.web.inputdata
Class UserInputData
- java.lang.Object
-
- org.ametys.web.inputdata.UserInputData
-
- All Implemented Interfaces:
InputData
,Contextualizable
,Serviceable
public class UserInputData extends Object implements InputData, Serviceable, Contextualizable
InputData
for SAXing events about FO user
-
-
Field Summary
Fields Modifier and Type Field Description private Context
_context
private CurrentUserProvider
_currentUserProvider
private RightManager
_rightManager
private UserHelper
_userHelper
private UserManager
_userManagerFO
-
Constructor Summary
Constructors Constructor Description UserInputData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
boolean
isCacheable(Site site, Page page)
Returns true if thisInputData
is cacheable for the current site and if possible page.void
service(ServiceManager manager)
void
toSAX(ContentHandler handler)
Generates SAX events for providing data.-
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.inputdata.InputData
shouldBeCached
-
-
-
-
Field Detail
-
_rightManager
private RightManager _rightManager
-
_userManagerFO
private UserManager _userManagerFO
-
_userHelper
private UserHelper _userHelper
-
_currentUserProvider
private CurrentUserProvider _currentUserProvider
-
-
Constructor Detail
-
UserInputData
public UserInputData()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
isCacheable
public boolean isCacheable(Site site, Page page)
Description copied from interface:InputData
Returns true if thisInputData
is cacheable for the current site and if possible page.- Specified by:
isCacheable
in interfaceInputData
- Parameters:
site
- the currentSite
.page
- the currentPage
. Can be null.- Returns:
- true if this
InputData
is cacheable for the current site or page.
-
toSAX
public void toSAX(ContentHandler handler) throws SAXException, ProcessingException
Description copied from interface:InputData
Generates SAX events for providing data.- Specified by:
toSAX
in interfaceInputData
- Parameters:
handler
- the content handler to SAX into.- Throws:
SAXException
- if an error occurs while SAXing.ProcessingException
- if an error occurs during processing.
-
-