001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.display.context;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portlet.dynamicdatamapping.DDMStructure;
019    
020    /**
021     * @author Iv??n Zaera
022     */
023    public interface DLEditFileEntryDisplayContext extends DLDisplayContext {
024    
025            public DLFilePicker getDLFilePicker(String onFilePickCallback)
026                    throws PortalException;
027    
028            public long getMaximumUploadRequestSize() throws PortalException;
029    
030            public long getMaximumUploadSize() throws PortalException;
031    
032            public String getPublishButtonLabel() throws PortalException;
033    
034            public String getSaveButtonLabel() throws PortalException;
035    
036            public boolean isCancelCheckoutDocumentButtonDisabled()
037                    throws PortalException;
038    
039            public boolean isCancelCheckoutDocumentButtonVisible()
040                    throws PortalException;
041    
042            public boolean isCheckinButtonDisabled() throws PortalException;
043    
044            public boolean isCheckinButtonVisible() throws PortalException;
045    
046            public boolean isCheckoutDocumentButtonDisabled() throws PortalException;
047    
048            public boolean isCheckoutDocumentButtonVisible() throws PortalException;
049    
050            public boolean isDDMStructureVisible(DDMStructure ddmStructure)
051                    throws PortalException;
052    
053            public boolean isFolderSelectionVisible() throws PortalException;
054    
055            public boolean isPublishButtonDisabled() throws PortalException;
056    
057            public boolean isPublishButtonVisible() throws PortalException;
058    
059            public boolean isSaveButtonDisabled() throws PortalException;
060    
061            public boolean isSaveButtonVisible() throws PortalException;
062    
063            public boolean isVersionInfoVisible() throws PortalException;
064    
065    }