1 16 package org.apache.cocoon.portal.profile; 17 18 import java.util.Collection ; 19 import java.util.List ; 20 21 import org.apache.avalon.framework.component.Component; 22 import org.apache.cocoon.portal.coplet.CopletData; 23 import org.apache.cocoon.portal.coplet.CopletInstanceData; 24 import org.apache.cocoon.portal.layout.Layout; 25 26 36 public interface ProfileManager extends Component { 37 38 String ROLE = ProfileManager.class.getName(); 39 40 50 Layout getPortalLayout(String layoutKey, String layoutID); 51 52 CopletInstanceData getCopletInstanceData(String copletID); 53 54 List getCopletInstanceData(CopletData data); 55 56 59 CopletData getCopletData(String copletDataId); 60 61 64 void login(); 65 66 70 void logout(); 71 72 75 void register(CopletInstanceData coplet); 76 77 80 void unregister(CopletInstanceData coplet); 81 82 85 void register(Layout layout); 86 87 90 void unregister(Layout layout); 91 92 98 void saveUserProfiles(String layoutKey); 99 100 104 void saveUserLayout(String layoutKey); 105 106 110 void saveUserCopletInstanceDatas(String layoutKey); 111 112 115 Collection getCopletInstanceDatas(); 116 117 120 Collection getCopletDatas(); 121 122 127 void storeProfile(Layout rootLayout, String layoutKey); 128 129 132 PortalUser getUser(); 133 } 134 | Popular Tags |