public class CalendarService extends Object
Constructor and Description |
---|
CalendarService()
Creates a new instance of CalendarService
|
Modifier and Type | Method and Description |
---|---|
void |
doCreateAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an agenda and reset the caches.
|
void |
doModifyAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify an agenda and reset the caches.
|
void |
doRemoveAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an agenda and reset the caches.
|
List<Integer> |
getAgendaIds()
Return the list of agenda IDs
|
AgendaResource |
getAgendaResource(int nAgendaId)
Returns the agenda
|
AgendaResource |
getAgendaResource(String strAgendaKeyName)
Get the agenda
|
List<AgendaResource> |
getAgendaResources(fr.paris.lutece.portal.business.user.AdminUser user,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of agenda resources.
|
List<AgendaResource> |
getAgendaResources(javax.servlet.http.HttpServletRequest request)
Get the list of agendas.
|
int |
getCacheSize()
Get the cache size
|
Map<String,String> |
getCalendarParameters(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the calendar default parameters
|
MultiAgenda |
getMultiAgenda(javax.servlet.http.HttpServletRequest request)
Get the multiAgenda.
|
String |
getName()
Get the service name
|
void |
removeCache()
Reset the cache
|
void |
removeCache(int nAgendaId)
Reset the cache from the given agenda ID
|
void |
removeCache(String strAgendaId)
Reset the cache from the given agenda ID
|
void |
resetCache()
Reset cache
|
void |
setCalendarCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
Set the agenda cache key service
|
public CalendarService()
public String getName()
public void setCalendarCacheKeyService(fr.paris.lutece.portal.service.cache.ICacheKeyService cacheKeyService)
cacheKeyService
- the cache key servicepublic AgendaResource getAgendaResource(String strAgendaKeyName)
strAgendaKeyName
- the agenda key namepublic AgendaResource getAgendaResource(int nAgendaId)
nAgendaId
- the ID agendapublic List<Integer> getAgendaIds()
public MultiAgenda getMultiAgenda(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequest
public List<AgendaResource> getAgendaResources(javax.servlet.http.HttpServletRequest request)
request
- HttpServletRequest
public List<AgendaResource> getAgendaResources(fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
user
- the AdminUser
plugin
- Plugin
public Map<String,String> getCalendarParameters(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Plugin
public void doCreateAgenda(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda
- the AgendaResource
plugin
- Plugin
public void doModifyAgenda(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
agenda
- AgendaResource
plugin
- Plugin
public void doRemoveAgenda(int nAgendaId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nAgendaId
- the agenda IDplugin
- Plugin
public void resetCache()
public void removeCache(String strAgendaId)
strAgendaId
- the agenda IDpublic void removeCache(int nAgendaId)
nAgendaId
- the agenda IDpublic void removeCache()
public int getCacheSize()
Copyright © 2018 City of Paris. All rights reserved.