1 5 6 13 package org.exoplatform.services.portletcontainer.pci; 14 15 16 import java.util.Map ; 17 import java.util.HashMap ; 18 import org.exoplatform.services.portletcontainer.PortletContainerConstants; 19 20 public class Output { 21 22 final static public String SEND_REDIRECT = "_send_redirect_" ; 23 final static public String LOGIN = "_login_" ; 24 final static public String PASSWORD = "_password_" ; 25 public static final String LOGOUT = "_logout_"; 26 27 private Map properties = new HashMap (); 28 29 30 public Map getProperties() { 31 return properties; 32 } 33 34 public void addProperty(String key, Object o) { 35 properties.put(key, o); 36 } 37 38 public void setProperties(Map properties) { 39 this.properties = properties; 40 } 41 42 public boolean hasError(){ 43 if(properties.get(PortletContainerConstants.DESTROYED) != null || 44 properties.get(PortletContainerConstants.EXCEPTION) != null) 45 return true; 46 return false; 47 } 48 49 } 50 | Popular Tags |