com.silverpeas.web.mock
Class TokenServiceMockWrapper

java.lang.Object
  extended by com.silverpeas.web.mock.TokenServiceMockWrapper
All Implemented Interfaces:
PersistentResourceTokenService

@Named(value="persistentResourceTokenService")
public class TokenServiceMockWrapper
extends Object
implements PersistentResourceTokenService

Author:
Yohann Chastagnier

Constructor Summary
TokenServiceMockWrapper()
          Default constructor into which mock is initialized
 
Method Summary
 PersistentResourceToken get(EntityReference ref)
           
 PersistentResourceToken get(String tokenValue)
           
 PersistentResourceTokenService getTokenServiceMock()
          Gets the mock
 PersistentResourceToken initialize(EntityReference ref)
           
 void remove(EntityReference ref)
           
 void remove(String tokenValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenServiceMockWrapper

public TokenServiceMockWrapper()
Default constructor into which mock is initialized

Method Detail

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.