diff --git a/applications/content/src/org/ofbiz/content/clearCurrentContent.bsh b/applications/content/src/org/ofbiz/content/clearCurrentContent.bsh deleted file mode 100644 index a95981a2ab..0000000000 --- a/applications/content/src/org/ofbiz/content/clearCurrentContent.bsh +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - - - diff --git a/applications/content/src/org/ofbiz/content/clearCurrentDataResource.bsh b/applications/content/src/org/ofbiz/content/clearCurrentDataResource.bsh deleted file mode 100644 index a95981a2ab..0000000000 --- a/applications/content/src/org/ofbiz/content/clearCurrentDataResource.bsh +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - - - diff --git a/applications/content/src/org/ofbiz/content/lruadd.bsh b/applications/content/src/org/ofbiz/content/lruadd.bsh deleted file mode 100644 index 65fe65f56f..0000000000 --- a/applications/content/src/org/ofbiz/content/lruadd.bsh +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -import org.ofbiz.base.util.*; -import org.ofbiz.entity.*; -import org.ofbiz.security.*; -import org.ofbiz.service.*; -import org.ofbiz.entity.model.*; - -import javax.servlet.*; -import javax.servlet.http.*; - -session = request.getSession(); -UtilCache contentLookupCache = (UtilCache)session.getAttribute("contentLookupCache"); -if(contentLookupCache == null){ - contentLookupCache = new UtilCache("contentLookupCache",10,0); - session.setAttribute("contentLookupCache", contentLookupCache); -} - -// If this event is called from a ContentAssoc req, then contentIdTo should be used. -String contentIdTo = (String)request.getAttribute("contentIdTo"); -String contentId = request.getAttribute("contentId"); -String contentIdParam = request.getParameter("contentId"); -Debug.logInfo("in lruadd, contentIdParam:" + contentIdParam, null); -Debug.logInfo("in lruadd, contentId:" + contentId, null); -String id = null; -if(contentIdTo != null) id = contentIdTo; -else if (contentId != null) id = contentId; -else id = contentIdParam; - -Debug.logInfo("in lruadd, id:" + id, null); - -LocalDispatcher dispatcher = (LocalDispatcher)request.getAttribute("dispatcher"); -GenericDelegator delegator = (GenericDelegator) request.getAttribute("delegator"); - -GenericValue genericValue = delegator.findByPrimaryKey("Content", UtilMisc.toMap("contentId", id)); -GenericPK pk = null; -if(genericValue != null) pk = genericValue.getPrimaryKey(); -contentLookupCache.put(id, pk); - - - - -//String contentOwnerId = (String)request.getAttribute("contentOwnerId"); -//if(contentOwnerId != null){ - //genericValue = delegator.findByPrimaryKey("Content", UtilMisc.toMap("contentId", contentOwnerId)); - //contentLookupCache.put(contentOwnerId, genericValue); -//} -return "success"; diff --git a/applications/content/src/org/ofbiz/content/lruaddDataResource.bsh b/applications/content/src/org/ofbiz/content/lruaddDataResource.bsh deleted file mode 100644 index c53c2bb119..0000000000 --- a/applications/content/src/org/ofbiz/content/lruaddDataResource.bsh +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -import org.ofbiz.base.util.*; -import org.ofbiz.entity.*; -import org.ofbiz.security.*; -import org.ofbiz.service.*; -import org.ofbiz.entity.model.*; - -import javax.servlet.*; -import javax.servlet.http.*; - -session = request.getSession(); -UtilCache dataResourceLookupCache = (UtilCache)session.getAttribute("dataResourceLookupCache"); -if(dataResourceLookupCache == null){ - dataResourceLookupCache = new UtilCache("dataResourceLookupCache",10,0); - session.setAttribute("dataResourceLookupCache", dataResourceLookupCache); -} - -String dataResourceId = request.getParameter("dataResourceId"); - - -LocalDispatcher dispatcher = (LocalDispatcher)request.getAttribute("dispatcher"); -GenericDelegator delegator = (GenericDelegator) request.getAttribute("delegator"); - -GenericValue genericValue = delegator.findByPrimaryKey("DataResource", UtilMisc.toMap("dataResourceId", dataResourceId)); -GenericPK pk = null; -if(genericValue != null) pk = genericValue.getPrimaryKey(); -dataResourceLookupCache.put(dataResourceId, pk); - -return "success";