Package org.ametys.cms.lock
Class UnlockGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
UnlockGenerator
public class UnlockGenerator extends AbstractCurrentUserProviderServiceableGenerator
List contents that can be unlocked.
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentHelper
_contentHelper
The content helperprotected RightManager
_rightManager
The rights managerprotected UnlockHelper
_unlockHelper
The unlock helperprotected UserManager
_userManager
The users manager-
Fields inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableGenerator
_currentUserProvider
-
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
-
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
-
Constructor Summary
Constructors Constructor Description UnlockGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<LockableAmetysObject,LocalDateTime>
_getLockedObjects()
Get the locked objects.protected void
_saxLockedContents(Map<LockableAmetysObject,LocalDateTime> lockedObjects)
SAX the locked objects.void
generate()
void
service(ServiceManager sManager)
-
Methods inherited from class org.ametys.core.util.cocoon.AbstractCurrentUserProviderServiceableGenerator
_getCurrentUser
-
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
-
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Field Detail
-
_unlockHelper
protected UnlockHelper _unlockHelper
The unlock helper
-
_rightManager
protected RightManager _rightManager
The rights manager
-
_userManager
protected UserManager _userManager
The users manager
-
_contentHelper
protected ContentHelper _contentHelper
The content helper
-
-
Constructor Detail
-
UnlockGenerator
public UnlockGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager sManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractCurrentUserProviderServiceableGenerator
- Throws:
ServiceException
-
generate
public void generate() throws IOException, SAXException, ProcessingException
-
_getLockedObjects
protected Map<LockableAmetysObject,LocalDateTime> _getLockedObjects()
Get the locked objects.- Returns:
- the locked objects.
-
_saxLockedContents
protected void _saxLockedContents(Map<LockableAmetysObject,LocalDateTime> lockedObjects) throws SAXException
SAX the locked objects.- Parameters:
lockedObjects
- the locked objects.- Throws:
SAXException
- if an error occurs generating the XML data.
-
-