1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 */ 19 20 package org.apache.myfaces.tobago.example.demo; 21 22 /** 23 * Class to collect all the JSF outcomes. 24 */ 25 public enum Outcome { 26 27 CONCEPT_SECURITY_ROLES_XLOGIN( 28 "/content/30-concept/80-security/20-roles/x-login.xhtml?faces-redirect=true"), 29 CONCEPT_LOCALE( 30 "/content/30-concept/14-locale/Locale.xhtml"), 31 COMPONENT_COMPONENT( 32 "/content/20-component/Component.xhtml?faces-redirect=true"), 33 TEST_BUTTONLINK_XACTION( 34 "/content/40-test/4000-button-link/x-action.xhtml?faces-redirect=true"), 35 TEST_BUTTONLINK_XTARGETACTION( 36 "/content/40-test/4000-button-link/x-targetAction.xhtml"); 37 38 private final String outcome; 39 40 Outcome(final String outcome) { 41 this.outcome = outcome; 42 } 43 44 @Override 45 public String toString() { 46 return outcome; 47 } 48 }