/* * This program is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software * Foundation. * * You should have received a copy of the GNU Lesser General Public License along with this * program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html * or from the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This program 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. * * Copyright 2008 Pentaho Corporation. All rights reserved. * * Created Mar 25, 2008 * @author Michael D'Amour */ package org.pentaho.mantle.client.objects; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; public class SolutionFileInfo implements Serializable { public String solution; public String path; public String name; public String localizedName; public Date lastModifiedDate; public long size; public byte[] data; public Type type; public String pluginTypeName; public boolean isDirectory = false; public boolean isSubscribable = false; public boolean supportsAccessControls = true; public boolean canEffectiveUserManage = false; public enum Type{REPORT, XACTION, URL, ANALYSIS_VIEW, PLUGIN, FOLDER}; public ArrayList<UserPermission> userPermissions; public ArrayList<RolePermission> rolePermissions; public SolutionFileInfo() { } public String getSolution() { return solution; } public void setSolution(String solution) { this.solution = solution; } public String getPath() { return path; } public void setPath(String path) { this.path = path; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getLastModifiedDate() { return lastModifiedDate; } public void setLastModifiedDate(Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } public long getSize() { return size; } public void setSize(long size) { this.size = size; } public byte[] getData() { return data; } public void setData(byte[] data) { this.data = data; } public boolean isDirectory() { return isDirectory; } public void setDirectory(boolean isDirectory) { this.isDirectory = isDirectory; } public boolean isSubscribable() { return isSubscribable; } public void setSubscribable(boolean isSubscribable) { this.isSubscribable = isSubscribable; } public boolean isSupportsAccessControls() { return supportsAccessControls; } public void setSupportsAccessControls(boolean supportsAccessControls) { this.supportsAccessControls = supportsAccessControls; } public ArrayList<UserPermission> getUserPermissions() { return userPermissions; } public void setUserPermissions(ArrayList<UserPermission> userPermissions) { this.userPermissions = userPermissions; } public ArrayList<RolePermission> getRolePermissions() { return rolePermissions; } public void setRolePermissions(ArrayList<RolePermission> rolePermissions) { this.rolePermissions = rolePermissions; } public Type getType() { return type; } public void setType(Type type) { this.type = type; } public boolean isCanEffectiveUserManage() { return canEffectiveUserManage; } public void setCanEffectiveUserManage(boolean canEffectiveUserManage) { this.canEffectiveUserManage = canEffectiveUserManage; } public String getLocalizedName() { return localizedName; } public void setLocalizedName(String localizedName) { this.localizedName = localizedName; } }