UpgradeIssueNotifier.java revision 65e99be301d5a19db33f25841f671756e8dbb9b5
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
* add the following below this CDDL HEADER, with the fields enclosed
* by brackets "[]" replaced with your own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2006-2008 Sun Microsystems, Inc.
*/
/**
* {@link org.opends.quicksetup.upgrader.VersionIssueNotifier} specific
* to upgrade tools.
*/
public class UpgradeIssueNotifier extends VersionIssueNotifier {
/**
* operation from one version to another.
* @param ui UserInteraction for relaying information to the user
* @param current BuildInformation representing the current version
* @param neu BuildInformation representing the proposed next version
*/
}
/**
* {@inheritDoc}
*/
public void notifyUser() throws ApplicationException {
if (hasIssues()) {
if (!isSupported()) {
directive.getMessage());
}
}
throw new ApplicationException(
null);
} else {
case ACTION:
.toMessage();
break;
case INFO:
.toMessage();
break;
case WARNING:
.toMessage();
break;
default:
}
defaultAction))) {
throw new ApplicationException(
}
}
} else {
throw new ApplicationException(
}
}
}
}
/**
* {@inheritDoc}
*/
protected Message getLocalizedDetailMessage(
{
// See if we need to supply a generic message
// instructions.
.toMessage();
}
return msg;
}
/**
* {@inheritDoc}
*/
boolean isAction = false;
isAction =
}
return isAction;
}
/**
* {@inheritDoc}
*/
boolean isWarning = false;
}
return isWarning;
}
/**
* {@inheritDoc}
*/
boolean isUnsupported = false;
switch (effect) {
case UPGRADE_NOT_POSSIBLE:
isUnsupported = true; break;
default:
// assume not an tion;
}
}
}
return isUnsupported;
}
}