/*
 * Copyright 2012 Shared Learning Collaborative, LLC
 *
 * 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 org.slc.sli.sif.slcinterface;

import org.slc.sli.api.client.Entity;

/**
 * Mapping between SIF id and SLI ids. Dummy implementation
 */
public class SifIdResolverImplDummy implements SifIdResolver {

    @Override
    public String getSliGuid(String sifId, String zoneId) {
        return null;
    }

    @Override
    public Entity getSliEntity(String sifId, String zoneId) {
        return null;
    }

    @Override
    public String getZoneSea(String zoneId) {
        return null;
    }

    @Override
    public void putSliGuid(String sifId, String sliType, String sliId, String zoneId) {
    }

    @Override
    public String getSliGuidByType(String sifId, String sliType, String zoneId)
    {
        return null;
    }

    @Override
    public void putSliGuidForOtherSifId(String sifId, String sliType,
            String sliId, String zoneId)
    {
    }
}

@@ -647,16 +647,65 @@
 rface;%0A%0A
+import java.util.HashMap;%0Aimport java.util.Map;%0A%0A
 import o
@@ -867,16 +867,425 @@
 lver %7B%0A%0A
+    private Map%3CString, String%3E sifToSliIdMap = new HashMap%3CString, String%3E();%0A    private Map%3CString, Entity%3E sifToSliEntityMap = new HashMap%3CString, Entity%3E();%0A%0A    public void reset() %7B%0A        sifToSliIdMap = new HashMap%3CString, String%3E();%0A        sifToSliEntityMap = new HashMap%3CString, Entity%3E();%0A    %7D%0A%0A    public void putEntity(String sifId, Entity e)%7B%0A        sifToSliEntityMap.put(sifId, e);%0A    %7D%0A%0A
     @Ove
@@ -1357,36 +1357,56 @@
 %0A        return 
-null
+sifToSliIdMap.get(sifId)
 ;%0A    %7D%0A%0A    @Ov
@@ -1481,36 +1481,60 @@
 %0A        return 
-null
+sifToSliEntityMap.get(sifId)
 ;%0A    %7D%0A%0A    @Ov
@@ -1712,24 +1712,65 @@
 g zoneId) %7B%0A
+        sifToSliIdMap.put(sifId, sliId);%0A
     %7D%0A%0A    @
@@ -1853,28 +1853,24 @@
 ring zoneId)
-%0A   
  %7B%0A        r
@@ -1867,36 +1867,56 @@
 %0A        return 
-null
+sifToSliIdMap.get(sifId)
 ;%0A    %7D%0A%0A    @Ov
@@ -1995,20 +1995,8 @@
 ype,
-%0A           
  Str
@@ -2020,20 +2020,16 @@
  zoneId)
-%0A   
  %7B%0A    %7D

Add test setup capabilities