1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.om.profile;
1819// Java imports20import java.util.Iterator;
2122// Jetspeed imports23import org.apache.jetspeed.om.SecurityReference;
2425/***26 * Portlets is collection of portlet entries and other portlet sets27 * within a configuration Document.28 * 29 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>30 * @version $Id: Portlets.java,v 1.7 2004/02/23 03:05:01 jford Exp $31 */32publicinterfacePortletsextendsIdentityElement33 {
34publicController getController();
3536publicvoid setController(Controller controller);
3738publicvoid setSecurity(Security security);
3940publicSecurity getSecurity();
4142publicint getEntryCount();
4344publicint getPortletsCount();
4546publicint getReferenceCount();
4748publicPortlets getPortlets(int index)
49 throws java.lang.IndexOutOfBoundsException;
5051publicEntry getEntry(int index)
52 throws java.lang.IndexOutOfBoundsException;
5354publicReference getReference(int index)
55 throws java.lang.IndexOutOfBoundsException;
5657publicEntry removeEntry(int index);
5859publicPortlets removePortlets(int index);
6061publicReference removeReference(int index);
6263public Iterator getEntriesIterator();
6465public Iterator getPortletsIterator();
6667public Iterator getReferenceIterator();
6869publicvoid addEntry(Entry entry)
70 throws java.lang.IndexOutOfBoundsException;
7172publicvoid addPortlets(Portlets portlets)
73 throws java.lang.IndexOutOfBoundsException;
7475publicvoid addReference(Reference ref)
76 throws java.lang.IndexOutOfBoundsException;
7778publicEntry[] getEntriesArray();
7980publicPortlets[] getPortletsArray();
8182publicReference[] getReferenceArray();
8384/*** Getter for property securityRef.85 * @return Value of property securityRef.86 */87publicSecurityReference getSecurityRef();
8889/*** Setter for property securityRef.90 * @param securityRef New value of property securityRef.91 */92publicvoid setSecurityRef(SecurityReference securityRef);
939495/***96 * @return Portlets parent <code>Portlets</code> object for this Portlets collection97 * <code>null</code> if it is the root.98 */99publicPortlets getParentPortlets();
100101/***102 * @param Portlets Sets the parent <code>Portlets</code> collection for this Portlets collection103 * 104 */105publicvoid setParentPortlets(Portlets parent);
106 }