com.silverpeas.web.mock
Class TokenServiceMockWrapper
java.lang.Object
com.silverpeas.web.mock.TokenServiceMockWrapper
- All Implemented Interfaces:
- PersistentResourceTokenService
@Named(value="persistentResourceTokenService")
public class TokenServiceMockWrapper
- extends Object
- implements PersistentResourceTokenService
- Author:
- Yohann Chastagnier
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenServiceMockWrapper
public TokenServiceMockWrapper()
- Default constructor into which mock is initialized
getTokenServiceMock
public PersistentResourceTokenService getTokenServiceMock()
- Gets the mock
- Returns:
initialize
public PersistentResourceToken initialize(EntityReference ref)
throws TokenException
- Specified by:
initialize in interface PersistentResourceTokenService
- Throws:
TokenException
get
public PersistentResourceToken get(EntityReference ref)
- Specified by:
get in interface PersistentResourceTokenService
get
public PersistentResourceToken get(String tokenValue)
- Specified by:
get in interface PersistentResourceTokenService
remove
public void remove(EntityReference ref)
- Specified by:
remove in interface PersistentResourceTokenService
remove
public void remove(String tokenValue)
- Specified by:
remove in interface PersistentResourceTokenService
Copyright © 2016 Silverpeas. All Rights Reserved.