/**********************************************************************************
* $URL: https://source.sakaiproject.org/svn/sam/trunk/samigo-services/src/java/org/sakaiproject/tool/assessment/facade/ItemFacadeQueriesAPI.java $
* $Id: ItemFacadeQueriesAPI.java 122568 2013-04-11 09:52:12Z david.horwitz@uct.ac.za $
***********************************************************************************
*
* Copyright (c) 2004, 2005, 2006, 2008 The Sakai Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ECL-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.sakaiproject.tool.assessment.facade;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import org.sakaiproject.tool.assessment.osid.shared.impl.IdImpl;
public interface ItemFacadeQueriesAPI
{
public IdImpl getItemId(String id);
public IdImpl getItemId(Long id);
public IdImpl getItemId(long id);
public Long add();
public List getQPItems(Long questionPoolId);
public List list();
public void show(Long itemId);
public void showType(Long typeId);
public void listType();
// DELETEME
public void remove(Long itemId);
public void deleteItem(Long itemId, String agent);
public void deleteItemContent(Long itemId, String agent);
public void deleteItemMetaData(Long itemId, String label);
public void addItemMetaData(Long itemId, String label, String value);
public Long facadeAdd() throws DataFacadeException;
public void ifcShow(Long itemId);
public ItemFacade saveItem(ItemFacade item) throws DataFacadeException;
/**
* Retrieve an item from storage
* @param itemId the item id
* @return the item or null if not found
*/
public ItemFacade getItem(Long itemId);
/**
* Retrieve an item from storage
* @param itemId the itemId
* @param agent agentId not used
* @return the item or null if not found
* @deprecated use {@link getItem}
*/
public ItemFacade getItem(Long itemId, String agent);
public HashMap getItemsByKeyword(String keyword);
public Long getItemTextId(Long publishedItemId);
public void deleteSet(Set s);
}