/*
    Copyright 2013 Rustici Software

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
*/
package com.rusticisoftware.tincan;

import com.rusticisoftware.tincan.documents.*;
import com.rusticisoftware.tincan.lrsresponses.*;

import java.util.List;
import java.util.UUID;

/**
 * Define the interface that must be satisfied to talk to an LRS
 */
public interface LRS {
    AboutLRSResponse about() throws Exception;

    StatementLRSResponse saveStatement(Statement statement) throws Exception;
    StatementsResultLRSResponse saveStatements(List<Statement> statements) throws Exception;
    StatementLRSResponse retrieveStatement(String id) throws Exception;
    StatementLRSResponse retrieveVoidedStatement(String id) throws Exception;
    StatementsResultLRSResponse queryStatements(StatementsQueryInterface query) throws Exception;
    StatementsResultLRSResponse moreStatements(String moreURL) throws Exception;

    ProfileKeysLRSResponse retrieveStateIds(Activity activity, Agent agent, UUID registration) throws Exception;
    StateLRSResponse retrieveState(String id, Activity activity, Agent agent, UUID registration) throws Exception;
    LRSResponse saveState(StateDocument state) throws Exception;
    LRSResponse deleteState(StateDocument state) throws Exception;
    LRSResponse clearState(Activity activity, Agent agent, UUID registration) throws Exception;

    ProfileKeysLRSResponse retrieveActivityProfileIds(Activity activity) throws Exception;
    ActivityProfileLRSResponse retrieveActivityProfile(String id, Activity activity) throws Exception;
    LRSResponse saveActivityProfile(ActivityProfileDocument profile) throws Exception;
    LRSResponse deleteActivityProfile(ActivityProfileDocument profile) throws Exception;

    ProfileKeysLRSResponse retrieveAgentProfileIds(Agent agent) throws Exception;
    AgentProfileLRSResponse retrieveAgentProfile(String id, Agent agent) throws Exception;
    LRSResponse saveAgentProfile(AgentProfileDocument profile) throws Exception;
    LRSResponse deleteAgentProfile(AgentProfileDocument profile) throws Exception;
}
@@ -898,33 +898,16 @@
  about()
- throws Exception
 ;%0A%0A    S
@@ -960,33 +960,16 @@
 atement)
- throws Exception
 ;%0A    St
@@ -1036,33 +1036,16 @@
 tements)
- throws Exception
 ;%0A    St
@@ -1091,33 +1091,16 @@
 ring id)
- throws Exception
 ;%0A    St
@@ -1152,33 +1152,16 @@
 ring id)
- throws Exception
 ;%0A    St
@@ -1233,33 +1233,16 @@
 e query)
- throws Exception
 ;%0A    St
@@ -1297,33 +1297,16 @@
 moreURL)
- throws Exception
 ;%0A%0A    P
@@ -1394,33 +1394,16 @@
 tration)
- throws Exception
 ;%0A    St
@@ -1492,33 +1492,16 @@
 tration)
- throws Exception
 ;%0A    LR
@@ -1540,33 +1540,16 @@
 t state)
- throws Exception
 ;%0A    LR
@@ -1590,33 +1590,16 @@
 t state)
- throws Exception
 ;%0A    LR
@@ -1669,33 +1669,16 @@
 tration)
- throws Exception
 ;%0A%0A    P
@@ -1744,33 +1744,16 @@
 ctivity)
- throws Exception
 ;%0A    Ac
@@ -1830,33 +1830,16 @@
 ctivity)
- throws Exception
 ;%0A    LR
@@ -1900,33 +1900,16 @@
 profile)
- throws Exception
 ;%0A    LR
@@ -1972,33 +1972,16 @@
 profile)
- throws Exception
 ;%0A%0A    P
@@ -2038,33 +2038,16 @@
 t agent)
- throws Exception
 ;%0A    Ag
@@ -2112,33 +2112,16 @@
 t agent)
- throws Exception
 ;%0A    LR
@@ -2176,33 +2176,16 @@
 profile)
- throws Exception
 ;%0A    LR
@@ -2246,24 +2246,7 @@
 ile)
- throws Exception
 ;%0A%7D

Make LRS interface match RemoteLRS implementation