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_contentHelperThe content helperprotected RightManager_rightManagerThe rights managerprotected UnlockHelper_unlockHelperThe unlock helperprotected UserManager_userManagerThe 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.voidgenerate()voidservice(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:
servicein interfaceServiceable- Overrides:
servicein 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.
-
-