|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.cache.service.VolatileResourceCacheService
public class VolatileResourceCacheService
This cache permits to reference some volatile resources (an entity that is being registered into persistence, but not yet validated by the user)
Constructor Summary | |
---|---|
VolatileResourceCacheService()
|
Method Summary | |
---|---|
Object |
addComponentResource(SilverpeasContent contribution)
Adds a contribution into the cache. |
void |
clear()
Clears all the resources referenced into this instance of volatile cache. |
static void |
clearFrom(SessionInfo sessionInfo)
Clears the volatile cache attached to a user session. |
int |
newVolatileIntegerIdentifier()
Creates a new volatile identifier of integer type. |
String |
newVolatileIntegerIdentifierAsString()
Creates a new volatile identifier of integer type converted as string value. |
long |
newVolatileLongIdentifier()
Creates a new volatile identifier of long type. |
String |
newVolatileLongIdentifierAsString()
Creates a new volatile identifier of long type converted as string value. |
String |
newVolatileStringIdentifier()
Creates a new volatile identifier of string type. |
Object |
removeComponentResource(String resourceId,
String componentInstanceId)
Removes from the cache a component resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VolatileResourceCacheService()
Method Detail |
---|
public int newVolatileIntegerIdentifier()
public String newVolatileIntegerIdentifierAsString()
public long newVolatileLongIdentifier()
public String newVolatileLongIdentifierAsString()
public String newVolatileStringIdentifier()
public Object addComponentResource(SilverpeasContent contribution)
contribution
- the contribution to add into the cache.
public Object removeComponentResource(String resourceId, String componentInstanceId)
resourceId
- the identifier of the resource into the component instance.componentInstanceId
- the identifier of the component which holds the resource.
public void clear()
public static void clearFrom(SessionInfo sessionInfo)
sessionInfo
- the session of a user.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |