/*
* Copyright 2011 Ronald Kurniawan.
*
* This file is part of CodeTraq.
*
* CodeTraq is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* CodeTraq is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with CodeTraq. If not, see <http://www.gnu.org/licenses/>.
*/
package net.mobid.codetraq.persistence;
/**
* This class holds the record for revision data for a certain pairing of server
* and user.
*
* @author Ronald Kurniawan
* @version 0.1
*/
public class UserRevision {
private String _serverAddress = null;
/**
* Returns the server URL for this revision.
* @return server URL
*/
public String getServerAddress() {
return _serverAddress;
}
/**
* Sets the server URL for this revision.
* @param value - server URL
*/
public void setServerAddress(String value) {
if (_serverAddress != null) {
System.out.printf("Server Address cannot be changed.%n");
return;
}
_serverAddress = value;
}
private String _owner = null;
/**
* Returns the user ID for this revision.
* @return user ID
*/
public String getOwner() {
return _owner;
}
/**
* Sets the user ID for this revision.
* @param value - user ID
*/
public void setOwner(String value) {
_owner = value;
}
private String _lastRevisionId = null;
/**
* Returns the last revision ID / number for this revision.
* @return last revision ID
*/
public String getLastRevisionId() {
return _lastRevisionId;
}
/**
* Sets the last revision ID / number for this revision.
* @param value - last revision ID
*/
public void setLastRevisionId(String value) {
_lastRevisionId = value;
}
}