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.context;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
019    
020    /**
021     * @author Iv??n Zaera
022     */
023    public interface DLEditFileEntryDisplayContext extends DLDisplayContext {
024    
025            public long getMaximumUploadSize() throws PortalException;
026    
027            public String getPublishButtonLabel() throws PortalException;
028    
029            public String getSaveButtonLabel() throws PortalException;
030    
031            public boolean isCancelCheckoutDocumentButtonDisabled()
032                    throws PortalException;
033    
034            public boolean isCancelCheckoutDocumentButtonVisible()
035                    throws PortalException;
036    
037            public boolean isCheckinButtonDisabled() throws PortalException;
038    
039            public boolean isCheckinButtonVisible() throws PortalException;
040    
041            public boolean isCheckoutDocumentButtonDisabled() throws PortalException;
042    
043            public boolean isCheckoutDocumentButtonVisible() throws PortalException;
044    
045            public boolean isDDMStructureVisible(DDMStructure ddmStructure)
046                    throws PortalException;
047    
048            public boolean isPublishButtonDisabled() throws PortalException;
049    
050            public boolean isPublishButtonVisible() throws PortalException;
051    
052            public boolean isSaveButtonDisabled() throws PortalException;
053    
054            public boolean isSaveButtonVisible() throws PortalException;
055    
056    }