001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.documentlibrary.ddm;
016    
017    import com.liferay.portal.kernel.language.LanguageUtil;
018    import com.liferay.portal.util.PortletKeys;
019    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
020    import com.liferay.portlet.documentlibrary.service.permission.DLPermission;
021    import com.liferay.portlet.dynamicdatamapping.storage.StorageType;
022    import com.liferay.portlet.dynamicdatamapping.util.BaseDDMDisplay;
023    
024    import java.util.Locale;
025    
026    /**
027     * @author Eduardo Garcia
028     */
029    public class DLDDMDisplay extends BaseDDMDisplay {
030    
031            @Override
032            public String getPortletId() {
033                    return PortletKeys.DOCUMENT_LIBRARY;
034            }
035    
036            @Override
037            public String getResourceName() {
038                    return DLPermission.RESOURCE_NAME;
039            }
040    
041            @Override
042            public String getStorageType() {
043                    return StorageType.XML.toString();
044            }
045    
046            @Override
047            public String getStructureName(Locale locale) {
048                    return LanguageUtil.get(locale, "metadata-set");
049            }
050    
051            @Override
052            public String getStructureType() {
053                    return DLFileEntryMetadata.class.getName();
054            }
055    
056    }