|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistentResourceTokenService
A service on the persistent token for Silverpeas entities. It wraps the mechanism to compute and to retrieve a token for a given resource handled in Silverpeas.
| Method Summary | |
|---|---|
PersistentResourceToken |
get(EntityReference resource)
Gets the token of the resource referred by the specified EntityReference. |
PersistentResourceToken |
get(String token)
Gets the token with the specified value from the data source. |
PersistentResourceToken |
initialize(EntityReference resource)
Initializes the token of the resource referred by the specified EntityReference. |
void |
remove(EntityReference resource)
Removes quietly the token of the resource referred by the specified entity reference. |
void |
remove(String token)
Removes quietly the specified token. |
| Method Detail |
|---|
PersistentResourceToken initialize(EntityReference resource)
throws TokenException
EntityReference. If the
resource has already a token, this token is then renewed.
resource - a reference to the resource for which a token will be initialized.
TokenException - if an unexpected error occurs while initializing a token.PersistentResourceToken get(EntityReference resource)
EntityReference. If no token
exists for the resource, then PersistentResourceToken.NoneToken is returned.
resource - a reference to the resource for which a token will be initialized.
PersistentResourceToken get(String token)
PersistentResourceToken.NoneToken is returned.
token - the value of the token to get.
void remove(EntityReference resource)
resource - the resource for which the token has to be removed.void remove(String token)
token - the String representation of the token to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||