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 getMaximumUploadSize() throws PortalException;
029    
030            public String getPublishButtonLabel() throws PortalException;
031    
032            public String getSaveButtonLabel() throws PortalException;
033    
034            public boolean isCancelCheckoutDocumentButtonDisabled()
035                    throws PortalException;
036    
037            public boolean isCancelCheckoutDocumentButtonVisible()
038                    throws PortalException;
039    
040            public boolean isCheckinButtonDisabled() throws PortalException;
041    
042            public boolean isCheckinButtonVisible() throws PortalException;
043    
044            public boolean isCheckoutDocumentButtonDisabled() throws PortalException;
045    
046            public boolean isCheckoutDocumentButtonVisible() throws PortalException;
047    
048            public boolean isDDMStructureVisible(DDMStructure ddmStructure)
049                    throws PortalException;
050    
051            public boolean isFolderSelectionVisible() throws PortalException;
052    
053            public boolean isPublishButtonDisabled() throws PortalException;
054    
055            public boolean isPublishButtonVisible() throws PortalException;
056    
057            public boolean isSaveButtonDisabled() throws PortalException;
058    
059            public boolean isSaveButtonVisible() throws PortalException;
060    
061            public boolean isVersionInfoVisible() throws PortalException;
062    
063    }