<?xml version="1.0" encoding="UTF-8"?>


<modulo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../config/patterns/xmlschemas/sources_schema.xsd">
	<id>imagerepository</id>
	<name>Repositorio de Imagens</name>
	<description>Repositorio de Imagens</description>
	<sources>
		<source id="imagerepository">
			<bdTable>bgs_repository</bdTable>
			<fields>
				<field id="id" datatype="id" name="Id" primaryKey="1"/>
				<field id="repositorioid" datatype="id" name="Id do Repositório" primaryKey="0"/>
				<field id="nome" datatype="string" name="Nome" primaryName="true"/>
				<field id="legenda" datatype="text" name="Legenda da Foto" />
				<field id="capa" datatype="integer" name="Capa do Álbum" />
				<!--<field id="" datatype="" datasize="" name="" required="" primaryKey="" primaryName="" inputType="" relation="" validationType="" />-->
			</fields>
		</source>
	</sources>
	
	<configs>
		<workflow>0</workflow>
		<imageRepository>0</imageRepository>
	</configs>
	
	<interfaces>
	
		<interface id="addfoto" name="Adicionar Foto" source="imagerepository">
			<configuration>
				<render renderable="1" />
				<action actionable="1" actionMethod="addimage" />
			</configuration>
			<styles>
				<style id="addimage" path="src/modulos/imagerepository/style/addimage.php"/>
			</styles>
			<acessGroups>
				<acessGroup id="50d7e9e13ec32fb152f433a21b01879e" allowRender="1" name="admin" />
			</acessGroups>
		</interface>
		
		<interface id="delete" name="Excluir" systemReference="bgsDelete" source="imagerepository">
			<configuration>
				<render renderable="0" />
				<action actionable="1" actionMethod="delete" />
			</configuration>
			<acessGroups>
				<acessGroup id="50d7e9e13ec32fb152f433a21b01879e" allowRender="1" name="Admin" />
			</acessGroups>
		</interface>
		
		<interface id="setCapa" name="Setar Capa" source="imagerepository">
			<configuration>
				<render renderable="0" />
				<action actionable="1" actionMethod="setCapa"/>
			</configuration>
			<styles>
				<style id="manager" path="src/modulos/imagerepository/style/manager.php"/>
			</styles>
			<acessGroups>
				<acessGroup id="50d7e9e13ec32fb152f433a21b01879e" allowRender="1" name="admin" />
			</acessGroups>
		</interface>
		
		<interface id="manager" name="Gerenciar Fotos" source="imagerepository">
			<fields>
				<field id="nome"/>
				<field id="capa" />
			</fields>
			<configuration>
				<render renderable="1" renderMethod="manager" />
				<action actionable="0"/>
			</configuration>
			<styles>
				<style id="manager" path="src/modulos/imagerepository/style/manager.php"/>
			</styles>
			<acessGroups>
				<acessGroup id="50d7e9e13ec32fb152f433a21b01879e" allowRender="1" name="admin" />
			</acessGroups>
		</interface>
		
	</interfaces>
	
</modulo>