001: /***************************************************************
002: * This file is part of the [fleXive](R) project.
003: *
004: * Copyright (c) 1999-2008
005: * UCS - unique computing solutions gmbh (http://www.ucs.at)
006: * All rights reserved
007: *
008: * The [fleXive](R) project is free software; you can redistribute
009: * it and/or modify it under the terms of the GNU General Public
010: * License as published by the Free Software Foundation;
011: * either version 2 of the License, or (at your option) any
012: * later version.
013: *
014: * The GNU General Public License can be found at
015: * http://www.gnu.org/copyleft/gpl.html.
016: * A copy is found in the textfile GPL.txt and important notices to the
017: * license from the author are found in LICENSE.txt distributed with
018: * these libraries.
019: *
020: * This library is distributed in the hope that it will be useful,
021: * but WITHOUT ANY WARRANTY; without even the implied warranty of
022: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
023: * GNU General Public License for more details.
024: *
025: * For further information about UCS - unique computing solutions gmbh,
026: * please see the company website: http://www.ucs.at
027: *
028: * For further information about [fleXive](R), please see the
029: * project website: http://www.flexive.org
030: *
031: *
032: * This copyright notice MUST APPEAR in all copies of the file!
033: ***************************************************************/package com.flexive.shared.search;
034:
035: import com.flexive.shared.AbstractSelectableObjectWithName;
036: import com.flexive.shared.security.LifeCycleInfo;
037:
038: import java.io.Serializable;
039:
040: /**
041: * The briefcase info object.
042: *
043: * @author Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
044: */
045: public class Briefcase extends AbstractSelectableObjectWithName
046: implements Serializable {
047: private static final long serialVersionUID = -1594461846638190701L;
048:
049: protected long id;
050: protected String name;
051: protected String description;
052: protected String sourceQuery;
053: protected long acl;
054: protected LifeCycleInfo lifeCycleInfo;
055: protected long mandator;
056: protected long iconId;
057: protected int size;
058:
059: protected Briefcase() {
060: this .id = -1;
061: this .name = "";
062: this .description = "";
063: this .sourceQuery = null;
064: this .acl = -1;
065: this .lifeCycleInfo = null;
066: this .mandator = -1;
067: this .iconId = -1;
068: this .size = 0;
069: }
070:
071: public Briefcase(long id, String name, long mandator,
072: String description, String sourceQuery, long acl,
073: LifeCycleInfo lifeCycleInfo, long iconId, int size) {
074: this .id = id;
075: this .name = name;
076: this .description = description;
077: this .sourceQuery = sourceQuery;
078: this .acl = acl;
079: this .lifeCycleInfo = lifeCycleInfo;
080: this .mandator = mandator;
081: this .iconId = iconId;
082: this .size = size;
083: }
084:
085: public long getIconId() {
086: return iconId;
087: }
088:
089: public long getId() {
090: return id;
091: }
092:
093: public String getName() {
094: return name;
095: }
096:
097: public String getDescription() {
098: return description;
099: }
100:
101: public String getSourceQuery() {
102: return sourceQuery;
103: }
104:
105: public long getAcl() {
106: return acl;
107: }
108:
109: public LifeCycleInfo getLifeCycleInfo() {
110: return lifeCycleInfo;
111: }
112:
113: public long getMandator() {
114: return mandator;
115: }
116:
117: public int getSize() {
118: return size;
119: }
120:
121: public BriefcaseEdit asEditable() {
122: return new BriefcaseEdit(this);
123: }
124: }
|