1 16 package org.apache.cocoon.webapps.portal.components; 17 18 import java.io.IOException ; 19 import java.util.Map ; 20 21 import org.apache.cocoon.ProcessingException; 22 import org.apache.cocoon.environment.Redirector; 23 import org.apache.cocoon.webapps.session.context.SessionContext; 24 import org.apache.cocoon.xml.XMLConsumer; 25 import org.w3c.dom.Element ; 26 import org.xml.sax.SAXException ; 27 28 34 public interface PortalManager { 35 36 37 String ROLE = PortalManager.class.getName(); 38 39 40 String BUILDTYPE_VALUE_BASIC = "basic"; 41 String BUILDTYPE_VALUE_GLOBAL = "global"; 42 String BUILDTYPE_VALUE_ROLE = "role"; 43 String BUILDTYPE_VALUE_ID = "user"; 44 45 51 String REQ_PARAMETER_CMD = "portalcmd"; 52 53 String REQ_CMD_MAXIMIZE = "maximize"; 54 String REQ_CMD_MINIMIZE = "minimize"; 55 String REQ_CMD_CLOSE = "close"; 56 String REQ_CMD_OPEN = "open"; 57 String REQ_CMD_HIDE = "hide"; String REQ_CMD_SHOW = "show"; String REQ_CMD_CUSTOMIZE= "customize"; 60 String REQ_CMD_UPDATE = "update"; 61 String REQ_CMD_DELETE = "delete"; 62 String REQ_CMD_MOVE = "move"; 63 String REQ_CMD_NEW = "new"; 64 String REQ_CMD_MOVEROW = "row"; String REQ_CMD_SAVEPROFILE = "save"; 66 67 68 String REQ_PARAMETER_CONF = "portalconf"; 69 70 71 String REQ_PARAMETER_PROFILE = "portalprofile"; 72 73 74 String REQ_PARAMETER_ROLE = "portalrole"; 75 String REQ_PARAMETER_ID = "portalid"; 76 String REQ_PARAMETER_STATE= "portaladmin"; 77 String REQ_PARAMETER_COPLET= "portalcoplet"; 78 String REQ_PARAMETER_ADMIN_COPLETS = "portaladmin_coplets"; 79 80 81 String ATTRIBUTE_PORTAL_ROLE = "role"; 82 String ATTRIBUTE_PORTAL_ID = "ID"; 83 84 85 String ATTRIBUTE_ADMIN_STATE = "adminstate"; 86 String ATTRIBUTE_ADMIN_ROLE = "adminrole"; 87 String ATTRIBUTE_ADMIN_ID = "adminid"; 88 String ATTRIBUTE_ADMIN_COPLETS = "admincoplets"; 89 90 94 void configurationTest() 95 throws ProcessingException, IOException , SAXException ; 96 97 100 void streamConfiguration(XMLConsumer consumer, 101 String requestURI, 102 String profileID, 103 String media, 104 String contextID) 105 throws IOException , SAXException , ProcessingException; 106 107 110 void showAdminConf(XMLConsumer consumer) 111 throws SAXException , ProcessingException, IOException ; 112 113 116 Element getStatusProfile() 117 throws SAXException , IOException , ProcessingException; 118 119 123 void showPortal(XMLConsumer consumer, 124 boolean configMode, 125 boolean adminProfile) 126 throws SAXException , ProcessingException, IOException ; 127 128 131 boolean checkAuthentication(Redirector redirector, String copletID) 132 throws SAXException , IOException , ProcessingException; 133 134 137 String getMediaType() 138 throws ProcessingException; 139 140 143 SessionContext getContext(boolean create) 144 throws ProcessingException, IOException , SAXException ; 145 146 149 String getProfileID(String type, 150 String role, 151 String id, 152 boolean adminProfile) 153 throws ProcessingException; 154 155 158 Map retrieveProfile(String profileID) 159 throws ProcessingException; 160 161 } 162 | Popular Tags |