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.security.LifeCycleInfo;
036:
037: /**
038: * An editable briefcase
039: *
040: * @author Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
041: * @version $Rev: 181 $
042: */
043: public class BriefcaseEdit extends Briefcase {
044: private static final long serialVersionUID = -2321222840214504878L;
045:
046: /**
047: * Create a new editable briefcase object.
048: *
049: * @param bc the template object, e.g. a briefcase retrieved from the database
050: */
051: public BriefcaseEdit(Briefcase bc) {
052: super (bc.getId(), bc.getName(), bc.getMandator(), bc
053: .getDescription(), bc.getSourceQuery(), bc.getAcl(), bc
054: .getLifeCycleInfo(), bc.getIconId(), bc.getSize());
055: }
056:
057: /**
058: * Creates a blank editable briefcase object.
059: */
060: public BriefcaseEdit() {
061: super ();
062: }
063:
064: public void setId(long id) {
065: this .id = id;
066: }
067:
068: public void setName(String name) {
069: this .name = name;
070: }
071:
072: public void setDescription(String description) {
073: this .description = description;
074: }
075:
076: public void setSourceQuery(String sourceQuery) {
077: this .sourceQuery = sourceQuery;
078: }
079:
080: public void setAcl(long acl) {
081: this .acl = acl;
082: }
083:
084: public void setLifeCycleInfo(LifeCycleInfo lifeCycleInfo) {
085: this .lifeCycleInfo = lifeCycleInfo;
086: }
087:
088: public void setMandator(long mandator) {
089: this .mandator = mandator;
090: }
091:
092: public void setIconId(long iconId) {
093: this .iconId = iconId;
094: }
095:
096: public void setSize(int size) {
097: this.size = size;
098: }
099:
100: }
|