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.portal.verify.model;
016    
017    import com.liferay.portal.kernel.model.Layout;
018    import com.liferay.portal.kernel.verify.model.VerifiableAuditedModel;
019    import com.liferay.portal.kernel.verify.model.VerifiableResourcedModel;
020    import com.liferay.portal.kernel.verify.model.VerifiableUUIDModel;
021    
022    /**
023     * @author Miguel Pastor
024     */
025    public class LayoutVerifiableModel
026            implements VerifiableAuditedModel, VerifiableResourcedModel,
027                               VerifiableUUIDModel {
028    
029            @Override
030            public String getJoinByTableName() {
031                    return null;
032            }
033    
034            @Override
035            public String getModelName() {
036                    return Layout.class.getName();
037            }
038    
039            @Override
040            public String getPrimaryKeyColumnName() {
041                    return "plid";
042            }
043    
044            @Override
045            public String getRelatedModelName() {
046                    return null;
047            }
048    
049            @Override
050            public String getRelatedPKColumnName() {
051                    return null;
052            }
053    
054            @Override
055            public String getTableName() {
056                    return "Layout";
057            }
058    
059            @Override
060            public String getUserIdColumnName() {
061                    return "userId";
062            }
063    
064            @Override
065            public boolean isAnonymousUserAllowed() {
066                    return false;
067            }
068    
069            @Override
070            public boolean isUpdateDates() {
071                    return false;
072            }
073    
074    }