001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 */ 016package org.nuxeo.ecm.user.registration; 017 018import java.util.Date; 019 020/** 021 * Simple POJO to hold document relative information 022 * 023 * @author <a href="mailto:akervern@nuxeo.com">Arnaud Kervern</a> 024 * @since 5.6 025 */ 026public class DocumentRegistrationInfo { 027 public static final String SCHEMA_NAME = "docinfo"; 028 029 public static final String DOCUMENT_ID_FIELD = SCHEMA_NAME + ":documentId"; 030 031 public static final String DOCUMENT_TITLE_FIELD = SCHEMA_NAME + ":documentTitle"; 032 033 public static final String DOCUMENT_RIGHT_FIELD = SCHEMA_NAME + ":permission"; 034 035 public static final String DOCUMENT_BEGIN_FIELD = SCHEMA_NAME + ":begin"; 036 037 public static final String DOCUMENT_END_FIELD = SCHEMA_NAME + ":end"; 038 039 public static final String ACL_NAME = "local"; 040 041 protected String documentId; 042 043 protected String permission; 044 045 protected String documentTitle; 046 047 /** 048 * @since 7.4 049 */ 050 protected Date begin; 051 052 /** 053 * @since 7.4 054 */ 055 protected Date end; 056 057 public Date getBegin() { 058 return begin; 059 } 060 061 public void setBegin(Date begin) { 062 this.begin = begin; 063 } 064 065 public Date getEnd() { 066 return end; 067 } 068 069 public void setEnd(Date end) { 070 this.end = end; 071 } 072 073 public String getDocumentTitle() { 074 return documentTitle; 075 } 076 077 public void setDocumentTitle(String documentTitle) { 078 this.documentTitle = documentTitle; 079 } 080 081 public String getDocumentId() { 082 return documentId; 083 } 084 085 public void setDocumentId(String documentId) { 086 this.documentId = documentId; 087 } 088 089 public String getPermission() { 090 return permission; 091 } 092 093 public void setPermission(String permission) { 094 this.permission = permission; 095 } 096}