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