Class AdminSessionProvider
- java.lang.Object
-
- org.ametys.plugins.repository.provider.AdminSessionProvider
-
- All Implemented Interfaces:
Initializable
,Component
,Serviceable
public class AdminSessionProvider extends Object implements Serviceable, Initializable, Component
Component holding a special admin JCR Session that must not be logged out
-
-
Field Summary
Fields Modifier and Type Field Description private Repository
_repository
private Session
_session
static String
ROLE
Avalon Role
-
Constructor Summary
Constructors Constructor Description AdminSessionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Session
getAdminSession()
Returns the admin sessionvoid
initialize()
void
service(ServiceManager manager)
-
-
-
Field Detail
-
_repository
private Repository _repository
-
-
Constructor Detail
-
AdminSessionProvider
public AdminSessionProvider()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
getAdminSession
public Session getAdminSession() throws RepositoryException
Returns the admin session- Returns:
- the admin session
- Throws:
RepositoryException
- if an error occurs.
-
-