diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepNotAvailable.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepNotAvailable.java deleted file mode 100644 index f0a63b251..000000000 --- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepNotAvailable.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (C) 2021 LibreCCM Foundation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301 USA - */ -package org.librecms.ui.contentsections.documents; - -import org.librecms.contentsection.ContentItem; -import org.librecms.contentsection.ContentSection; - -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; - -/** - * A pseudo implemention of the {@link MvcAuthoringStep} interface used by the - * {@link DocumentController} to show an error message when the authoring step - * does not exist. - * - * Most of methods in this implementation are throwing an - * {@link UnsupportedOperationException}. - * - * @author Jens Pelzetter - */ -public class AuthoringStepNotAvailable implements MvcAuthoringStep { - - @Override - public Class supportedDocumentType() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getLabel() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getDescription() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getBundle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public void setContentSection(ContentSection section) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public ContentSection getContentSection() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public void setContentItem(ContentItem document) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public ContentItem getContentItem() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String showStep() { - return "org/librecms/ui/contentsection/documents/authoringstep-not-available.xhtml"; - } - - @GET - @Path("/documentPath:(.+)?") - public String showForAllGets() { - return showStep(); - } - - @POST - @Path("/") - public String showForPost() { - return showStep(); - } - - @POST - @Path("/documentPath:(.+)?") - public String showForAllPosts() { - return showStep(); - } - - @Override - public String getContentSectionLabel() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentSectionTitle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentItemPath() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentItemTitle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - -} diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentNotFound.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentNotFound.java deleted file mode 100644 index 748cf10c0..000000000 --- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentNotFound.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (C) 2021 LibreCCM Foundation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301 USA - */ -package org.librecms.ui.contentsections.documents; - -import org.librecms.contentsection.ContentItem; -import org.librecms.contentsection.ContentSection; - -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; - -/** - * A pseudo implemention of the {@link MvcAuthoringStep} interface used by - * the {@link DocumentController} to show an error message when the requested - * document/content item does not exist. - * - * Most of methods in this implementation are throwing an - * {@link UnsupportedOperationException}. - * - * @author Jens Pelzetter - */ -public class DocumentNotFound implements MvcAuthoringStep { - - @Override - public Class supportedDocumentType() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getLabel() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getDescription() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getBundle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public void setContentSection(ContentSection section) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public ContentSection getContentSection() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public void setContentItem(ContentItem document) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public ContentItem getContentItem() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String showStep() { - return "org/librecms/ui/contentsection/documents/document-not-found.xhtml"; - } - - @GET - @Path("/documentPath:(.+)?") - public String showForAllGets() { - return showStep(); - } - - @POST - @Path("/") - public String showForPost() { - return showStep(); - } - - @POST - @Path("/documentPath:(.+)?") - public String showForAllPosts() { - return showStep(); - } - - @Override - public String getContentSectionLabel() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentSectionTitle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentItemPath() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentItemTitle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - -} diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/EditDenied.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/EditDenied.java deleted file mode 100644 index 1b7120228..000000000 --- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/EditDenied.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright (C) 2021 LibreCCM Foundation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301 USA - */ -package org.librecms.ui.contentsections.documents; - -import org.librecms.contentsection.ContentItem; -import org.librecms.contentsection.ContentSection; - -/** - * A pseudo implemention of the {@link MvcAuthoringStep} interface used by the - * {@link DocumentController} to show an error message when the current user is - * not permitted to edit an item. - * - * Most of methods in this implementation are throwing an - * {@link UnsupportedOperationException}. - * - * @author Jens Pelzetter - */ -public class EditDenied implements MvcAuthoringStep { - - @Override - public String getDescription() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getBundle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public ContentSection getContentSection() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public void setContentSection(ContentSection section) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentSectionLabel() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentSectionTitle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public Class supportedDocumentType() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getLabel() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public ContentItem getContentItem() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public void setContentItem(ContentItem document) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentItemPath() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentItemTitle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String showStep() { - return "org/librecms/ui/contentsection/documents/access-denied.xhtml"; - } - -} diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/UnsupportedDocumentType.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/UnsupportedDocumentType.java deleted file mode 100644 index b92df2694..000000000 --- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/UnsupportedDocumentType.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (C) 2021 LibreCCM Foundation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - * MA 02110-1301 USA - */ -package org.librecms.ui.contentsections.documents; - -import org.librecms.contentsection.ContentItem; -import org.librecms.contentsection.ContentSection; - -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; - -/** - * A pseudo implemention of the {@link MvcAuthoringStep} interface used by the - * {@link DocumentController} to show an error message when the authoring step - * does not support the requested document. - * - * Most of methods in this implementation are throwing an - * {@link UnsupportedOperationException}. - * - * @author Jens Pelzetter - */ -public class UnsupportedDocumentType implements MvcAuthoringStep { - - @Override - public Class supportedDocumentType() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getLabel() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getDescription() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getBundle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public void setContentSection(ContentSection section) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public ContentSection getContentSection() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public void setContentItem(ContentItem document) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public ContentItem getContentItem() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String showStep() { - return "org/librecms/ui/contentsection/documents/unsupported-documenttype.xhtml"; - } - - @GET - @Path("/documentPath:(.+)?") - public String showForAllGets() { - return showStep(); - } - - @POST - @Path("/") - public String showForPost() { - return showStep(); - } - - @POST - @Path("/documentPath:(.+)?") - public String showForAllPosts() { - return showStep(); - } - - @Override - public String getContentSectionLabel() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentSectionTitle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentItemPath() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - - @Override - public String getContentItemTitle() { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - -}