Author: weaver
Date: Tue Jun 14 08:55:23 2005
New Revision: 190621
URL: http://svn.apache.org/viewcvs?rev=190621&view=rev
Log:
restored (sorry).
Added:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponent.java
Added:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponent.java
URL:
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponent.java?rev=190621&view=auto
==============================================================================
---
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponent.java
(added)
+++
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponent.java
Tue Jun 14 08:55:23 2005
@@ -0,0 +1,186 @@
+/*
+ * Copyright 2000-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jetspeed.components.portletentity;
+
+import java.io.IOException;
+import java.util.Collection;
+
+import org.apache.jetspeed.om.common.portlet.MutablePortletEntity;
+import org.apache.jetspeed.om.page.ContentFragment;
+import org.apache.jetspeed.om.page.Fragment;
+import org.apache.pluto.om.common.ObjectID;
+import org.apache.pluto.om.common.PreferenceSet;
+import org.apache.pluto.om.entity.PortletEntity;
+import org.apache.pluto.om.portlet.PortletDefinition;
+
+/**
+ * <p>
+ * PortletEntityAccessComponent
+ * </p>
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Scott T. Weaver</a>
+ * @version $Id: PortletEntityAccessComponent.java,v 1.8 2005/04/29 13:59:46
weaver Exp $
+ *
+ */
+public interface PortletEntityAccessComponent
+{
+ /**
+ *
+ * <p>
+ * getPortletEntity
+ * </p>
+ *
+ * @param id
+ * @return
+ */
+ MutablePortletEntity getPortletEntity(ObjectID id);
+
+ MutablePortletEntity getPortletEntity(String id);
+
+ /**
+ *
+ * <p>
+ * generateEntityFromFragment
+ * </p>
+ *
+ * @param fragment
+ * @param principal
+ * @return
+ * @throws PortletEntityNotGeneratedException
+ */
+ MutablePortletEntity generateEntityFromFragment(ContentFragment
fragment, String principal) throws PortletEntityNotGeneratedException;
+
+ /**
+ *
+ * <p>
+ * generateEntityFromFragment
+ * </p>
+ *
+ * @param fragment
+ * @return
+ * @throws PortletEntityNotGeneratedException
+ */
+ MutablePortletEntity generateEntityFromFragment(ContentFragment
fragment) throws PortletEntityNotGeneratedException;
+
+ /**
+ *
+ * <p>
+ * generateEntityKey
+ * </p>
+ *
+ * @param fragment
+ * @param principal
+ * @return
+ */
+ ObjectID generateEntityKey(Fragment fragment, String principal);
+
+ /**
+ *
+ * <p>
+ * newPortletEntityInstance
+ * </p>
+ *
+ * @param portletDefinition
+ * @return
+ */
+ MutablePortletEntity newPortletEntityInstance(PortletDefinition
portletDefinition);
+ MutablePortletEntity newPortletEntityInstance(PortletDefinition
portletDefinition, String id);
+
+ /**
+ *
+ * <p>
+ * getPortletEntityForFragment
+ * </p>
+ *
+ * @param fragment
+ * @param principal
+ * @return
+ * @throws PortletEntityNotStoredException
+ */
+ MutablePortletEntity getPortletEntityForFragment(ContentFragment
fragment, String principal) throws PortletEntityNotStoredException;
+
+ /**
+ *
+ * <p>
+ * getPortletEntityForFragment
+ * </p>
+ *
+ * @param fragment
+ * @return
+ * @throws PortletEntityNotStoredException
+ */
+ MutablePortletEntity getPortletEntityForFragment(ContentFragment
fragment) throws PortletEntityNotStoredException;
+
+ /**
+ *
+ * <p>
+ * removePortletEntity
+ * </p>
+ *
+ * @param portletEntity
+ * @throws PortletEntityNotDeletedException
+ */
+ void removePortletEntity(PortletEntity portletEntity) throws
PortletEntityNotDeletedException;
+
+ /**
+ *
+ * <p>
+ * removeFromCache
+ * </p>
+ * Removes a PortletEntity from the cache.
+ * @param entity
+ */
+ void removeFromCache(PortletEntity entity);
+
+ /**
+ *
+ * <p>
+ * storePortletEntity
+ * </p>
+ *
+ * @param portletEntity
+ * @throws PortletEntityNotStoredException
+ */
+ void storePortletEntity(PortletEntity portletEntity) throws
PortletEntityNotStoredException;
+
+ /**
+ *
+ * <p>
+ * getPortletEntities
+ * </p>
+ *
+ * @param portletDefinition
+ * @return
+ */
+ Collection getPortletEntities(PortletDefinition portletDefinition);
+
+ Collection getPortletEntities( String portletUniqueName );
+
+ /**
+ *
+ * <p>
+ * removePortletEntities
+ * </p>
+ *
+ * @param portletDefinition
+ * @throws PortletEntityNotDeletedException
+ */
+ void removePortletEntities(PortletDefinition portletDefinition) throws
PortletEntityNotDeletedException;
+
+
+ void storePreferenceSet(PreferenceSet prefSet, PortletEntity entity)
throws IOException;
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]