Package org.ametys.cms.lock
Class UnlockGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
UnlockGenerator
List contents that can be unlocked.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected RightManager
The rights managerprotected UnlockHelper
The unlock helperprotected UserManager
The users managerFields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map<LockableAmetysObject,
LocalDateTime> 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 Details
-
_unlockHelper
The unlock helper -
_rightManager
The rights manager -
_userManager
The users manager -
_contentHelper
The content helper
-
-
Constructor Details
-
UnlockGenerator
public UnlockGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractCurrentUserProviderServiceableGenerator
- Throws:
ServiceException
-
generate
-
_getLockedObjects
Get the locked objects.- Returns:
- the locked objects.
-
_saxLockedContents
protected void _saxLockedContents(Map<LockableAmetysObject, LocalDateTime> lockedObjects) throws SAXExceptionSAX the locked objects.- Parameters:
lockedObjects
- the locked objects.- Throws:
SAXException
- if an error occurs generating the XML data.
-