com.antiaction.raptor.dao.IContentProvider Maven / Gradle / Ivy
/*
* Created on 11/06/2010
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.antiaction.raptor.dao;
import java.sql.Connection;
import java.util.List;
import java.util.Map;
import java.util.Set;
public interface IContentProvider {
public ViewBase getView();
/*
* Entity type methods.
*/
// Get all available entity types.
public List getEntityTypeList();
// Get entity type.
public EntityTypeBase getContentType(int type_id);
// Get entity type ordinal.
public int getContentTypeOrdinal(String type_name);
// Get entitytype_id->attributetype_id mappings for all entity types.
public Map > getContentTypesChildrenTypes();
// Get the tree icon associated with contenttype_id.
public String getTypeTreeIcon(int type_id);
/*
* Attribute type methods.
*/
public List getAttributeTypeList();
public List getAttributeTypeList(String viewpane);
public AttributeTypeBase getAttributeType(int type_id);
public int getAttributeTypeOrdinalQName(String type_name);
public int getAttributeTypeOrdinalName(String type_name);
/*
* Tree methods.
*/
/**
* Get parent path id list in reverse order, bottom->top.
*/
public List getParentPathIdList(int id);
public int getSubtreeCount(int id);
/*
* Instance methods.
*/
public EntityBase createContent(SecurityEntityBase user, int parent_id, int type_id);
public EntityBase createContent(SecurityEntityBase user, Connection conn, int parent_id, int type_id);
public EntityBase cloneContent(SecurityEntityBase user, Connection conn, EntityBase src_entity, int parent_id);
public EntityBase getContentById(SecurityEntityBase user, int id);
public EntityBase getContentById(SecurityEntityBase user, Connection conn, int id);
public int RemoveItem(SecurityEntityBase user, int id);
public int RemoveItem(SecurityEntityBase user, Connection conn, int id);
public List getContentBySearch(SecurityEntityBase user, List options);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy