001/*
002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 */
018package org.nuxeo.ecm.user.registration;
019
020import java.util.Date;
021
022/**
023 * Simple POJO to hold document relative information
024 *
025 * @author <a href="mailto:akervern@nuxeo.com">Arnaud Kervern</a>
026 * @since 5.6
027 */
028public class DocumentRegistrationInfo {
029    public static final String SCHEMA_NAME = "docinfo";
030
031    public static final String DOCUMENT_ID_FIELD = SCHEMA_NAME + ":documentId";
032
033    public static final String DOCUMENT_TITLE_FIELD = SCHEMA_NAME + ":documentTitle";
034
035    public static final String DOCUMENT_RIGHT_FIELD = SCHEMA_NAME + ":permission";
036
037    public static final String DOCUMENT_BEGIN_FIELD = SCHEMA_NAME + ":begin";
038
039    public static final String DOCUMENT_END_FIELD = SCHEMA_NAME + ":end";
040
041    public static final String ACL_NAME = "local";
042
043    protected String documentId;
044
045    protected String permission;
046
047    protected String documentTitle;
048
049    /**
050     * @since 7.4
051     */
052    protected Date begin;
053
054    /**
055     * @since 7.4
056     */
057    protected Date end;
058
059    public Date getBegin() {
060        return begin;
061    }
062
063    public void setBegin(Date begin) {
064        this.begin = begin;
065    }
066
067    public Date getEnd() {
068        return end;
069    }
070
071    public void setEnd(Date end) {
072        this.end = end;
073    }
074
075    public String getDocumentTitle() {
076        return documentTitle;
077    }
078
079    public void setDocumentTitle(String documentTitle) {
080        this.documentTitle = documentTitle;
081    }
082
083    public String getDocumentId() {
084        return documentId;
085    }
086
087    public void setDocumentId(String documentId) {
088        this.documentId = documentId;
089    }
090
091    public String getPermission() {
092        return permission;
093    }
094
095    public void setPermission(String permission) {
096        this.permission = permission;
097    }
098}