LocalOperations.java revision 6b0b9411405932b5ada376bb06d6bc3d94980d7f
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2014 ForgeRock AS.
*/
/**
* Responsible for applying Session operations on the local Server instance.
*
* This will be based on invoking the {@link SessionService} directly. This implementation
* has been refactored out from {@link Session}.
*/
public class LocalOperations implements SessionOperations {
private final SessionService service;
/**
* Guice initialised constructor.
*
* @param debug Non null.
* @param service Non null.
*/
public LocalOperations(@Named(SessionConstants.SESSION_DEBUG) Debug debug, SessionService service) {
}
/**
* Fetches the SessionInfo from the SessionService.
*
* @param session The Session to update.
* @param reset If true, then update the last modified timestamp of the Session.
* @return Null if there was an error locating the Session, otherwise non null.
*/
if (debug.messageEnabled()) {
"Local fetch SessionInfo for {0}\n" +
"Reset: {1}",
reset));
}
}
/**
* Logs out the Session using the SessionService.
*
* @param session Session to logout.
*/
if (debug.messageEnabled()) {
"Local logout for {0}",
}
}
/**
* Destroy the Session using the SessionService.
*
* @param requester {@inheritDoc}
* @param session {@inheritDoc}
* @throws SessionException {@inheritDoc}
*/
if (debug.messageEnabled()) {
}
}
/**
* Sets the property using the SessionService.
* {@inheritDoc}
*/
if (debug.messageEnabled()) {
"Local setProperty for {0} {1}={2}",
name,
value));
}
}
}