org.javabeanstack.resources.IAppResource Maven / Gradle / Ivy
/*
* JavaBeanStack FrameWork
*
* Copyright (C) 2017 Jorge Enciso
* Email: [email protected]
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*/
package org.javabeanstack.resources;
import java.io.Serializable;
import java.util.Map;
import org.javabeanstack.model.IAppCompany;
import org.javabeanstack.model.IAppUser;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.javabeanstack.security.IUserSession;
import org.javabeanstack.xml.IXmlDom;
/**
*
* @author Jorge Enciso
*/
public interface IAppResource extends Serializable{
byte[] getResourceAsBytes(IUserSession userSession, String resourcePath);
byte[] getResourceAsBytes(String sessionId, String resourcePath);
IXmlDom getResourceAsXmlDom(String sessionId, String resourcePath, String elementPath, Map params);
byte[] getUserAvatar(Class entityClass, Long userId);
byte[] getCompanyLogo(Class entityClass, Long companyId);
}