/* * Copyright 2009, OpenIAM LLC * This file is part of the OpenIAM Identity and Access Management Suite * * OpenIAM Identity and Access Management Suite is free software: * you can redistribute it and/or modify * it under the terms of the Lesser GNU General Public License * version 3 as published by the Free Software Foundation. * * OpenIAM 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 * Lesser GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with OpenIAM. If not, see <http://www.gnu.org/licenses/>. * */ /** * */ package org.openiam.webadmin.res; import org.openiam.idm.srvc.mngsys.dto.ApproverAssociation; import java.io.Serializable; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import org.openiam.idm.srvc.role.dto.Role; /** * Command object for ManagedSystemConnection * * @author suneet */ public class ResourceApprovalFlowCommand implements Serializable { /** * */ private static final long serialVersionUID = 4939438179419596312L; /** * */ List<ApproverAssociation> approverAssoc; String resourceName; String resId; String managedSysId; List<Role> roleList; String formError; public ResourceApprovalFlowCommand() { } public String formatDate(Date dt) { if (dt == null) { return null; } DateFormat fmt = new SimpleDateFormat("MM/dd/yyyy"); return fmt.format(dt); } public String getResourceName() { return resourceName; } public void setResourceName(String resourceName) { this.resourceName = resourceName; } public String getResId() { return resId; } public void setResId(String resId) { this.resId = resId; } public String getManagedSysId() { return managedSysId; } public void setManagedSysId(String managedSysId) { this.managedSysId = managedSysId; } public List<ApproverAssociation> getApproverAssoc() { return approverAssoc; } public void setApproverAssoc(List<ApproverAssociation> approverAssoc) { this.approverAssoc = approverAssoc; } public List<Role> getRoleList() { return roleList; } public void setRoleList(List<Role> roleList) { this.roleList = roleList; } public String getFormError() { return formError; } public void setFormError(String formError) { this.formError = formError; } }