All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.internet2.middleware.grouper.grouperUi.beans.attributeUpdate.AttributeUpdateText Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright 2012 Internet2
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
/**
 * @author mchyzer
 * $Id$
 */
package edu.internet2.middleware.grouper.grouperUi.beans.attributeUpdate;

import edu.internet2.middleware.grouper.ui.tags.TagUtils;


/**
 * get text in external URL (if applicable), and from nav.properties
 */
public class AttributeUpdateText {

  /** singleton */
  private static AttributeUpdateText simpleAttributeUpdateText = new AttributeUpdateText();
  
  /**
   * attribute attribute definition names for this attribute def
   * @return attribute def name button
   */
  public String getEditAttributeNames() {
    return text("simpleAttributeUpdate.editAttributeNames");
  }
  
  /**
   * filter button for add subject
   * @return filter button text
   */
  public String getFilterAttributePrivilegeSubject() {
    return text("simpleAttributeUpdate.filterAttributePrivilegeSubject");
  }
  
  /**
   * delete action implies confirm
   * @return confirm
   */
  public String getDeleteActionImpliesConfirm() {
    return text("simpleAttributeUpdate.deleteActionImpliesConfirm");
  }

  /**
   * delete action implies image alt
   * @return image alt
   */
  public String getDeleteActionImpliesImageAlt() {
    return text("simpleAttributeUpdate.deleteActionImpliesImageAlt");
  }

  
  /**
   * delete action implied by confirm
   * @return confirm
   */
  public String getDeleteActionImpliedByConfirm() {
    return text("simpleAttributeUpdate.deleteActionImpliedByConfirm");
  }

  /**
   * delete action implied by image alt
   * @return image alt
   */
  public String getDeleteActionImpliedByImageAlt() {
    return text("simpleAttributeUpdate.deleteActionImpliedByImageAlt");
  }

  
  /**
   * add actions
   * @return add actions
   */
  public String getAddActions() {
    return text("simpleAttributeUpdate.addActions");
  }

  /**
   * replace actions
   * @return replace actions
   */
  public String getReplaceActions() {
    return text("simpleAttributeUpdate.replaceActions");
  }


  /**
   * get singleton
   * @return singleton
   */
  public static AttributeUpdateText retrieveSingleton() {
    return simpleAttributeUpdateText;
  }

  /**
   * edit panel submit
   * @return title
   */
  public String getEditPanelSubmit() {
    return text("simpleAttributeUpdate.editPanelSubmit");
  }

  /**
   * edit panel submit
   * @return title
   */
  public String getEditPanelCancel() {
    return text("simpleAttributeUpdate.editPanelCancel");
  }
  
  /**
   * privilege panel submit
   * @return button text
   */
  public String getPrivilegePanelSubmit() {
    return text("simpleAttributeUpdate.privilegePanelSubmit");
  }

  /**
   * privilege panel submit
   * @return button text
   */
  public String getPrivilegePanelCancel() {
    return text("simpleAttributeUpdate.privilegePanelCancel");
  }
  
  /**
   * delete action confirm
   * @return delete action confirm
   */
  public String getDeleteActionConfirm() {
    return text("simpleAttributeUpdate.deleteActionConfirm");
  }

  /**
   * edit action alt
   * @return edit action alt
   */
  public String getEditActionImageAlt() {
    return text("simpleAttributeUpdate.editActionImageAlt");
  }

  /**
   * action inheritance graph alt
   * @return action inheritance alt
   */
  public String getActionGraphImageAlt() {
    return text("simpleAttributeUpdate.actionGraphImageAlt");
  }

  /**
   * add action edit implies
   * @return edit action confirmadd action edit implies
   */
  public String getAddActionEditImplies() {
    return text("simpleAttributeUpdate.addActionEditImplies");
  }

  /**
   * add action edit implied by
   * @return edit action confirmadd action edit implied by
   */
  public String getAddActionEditImpliedBy() {
    return text("simpleAttributeUpdate.addActionEditImpliedBy");
  }

  
  
  /**
   * delete action image alt
   * @return delete action image alt
   */
  public String getDeleteActionImageAlt() {
    return text("simpleAttributeUpdate.deleteActionImageAlt");
  }
  
  /**
   * edit panel actions
   * @return title
   */
  public String getEditPanelActions() {
    return text("simpleAttributeUpdate.editPanelActions");
  }
  
  /**
   * edit panel delete
   * @return title
   */
  public String getEditPanelDelete() {
    return text("simpleAttributeUpdate.editPanelDelete");
  }

  /**
   * edit panel privileges
   * @return title
   */
  public String getEditPanelPrivileges() {
    return text("simpleAttributeUpdate.editPanelPrivileges");
  }
  
  
  
  /**
   * get text based on key
   * @param key
   * @return text
   */
  public String text(String key) {
    
    //finally, just go to nav.propreties
    return TagUtils.navResourceString(key);
    
  }
  
  /**
   * title of update screen
   * @return title
   */
  public String getAssignIndexTitle() {
    return text("simpleAttributeUpdate.assignIndexTitle");
  }
  
  /**
   * title of update screen
   * @return title
   */
  public String getEditId() {
    return text("simpleAttributeUpdate.editId");
  }
  
  
  
  /**
   * title of create edit screen
   * @return the title
   */
  public String getCreateEditIndexTitle() {
    return text("simpleAttributeUpdate.createEditIndexTitle");
  }

  /**
   * infodot of the title
   * @return the infodot of the title
   */
  public String getCreateEditIndexTitleInfodot() {
    return text("simpleAttributeUpdate.createEditIndexTitleInfodot");
  }
  
  /**
   * button to edit an existing attribute definition
   * @return the infodot of the title
   */
  public String getFilterAttributeDefButton() {
    return text("simpleAttributeUpdate.filterAttributeDefButton");
  }
  
  /**
   * infodot of title of update screen
   * @return title
   */
  public String getAssignIndexTitleInfodot() {
    return text("simpleAttributeUpdate.assignIndexTitleInfodot");
  }
  
  /**
   * new attribute def button
   * @return title
   */
  public String getNewAttributeDefButton() {
    return text("simpleAttributeUpdate.newAttributeDefButton");
  }
  
  
  
//  /**
//   * @param memberDescription 
//   * @return the label
//   */
//  public String getWarningSubjectAlreadyMember(String memberDescription) {
//    String theText = text("simpleMembershipUpdate.warningSubjectAlreadyMember");
//    memberDescription = GrouperUiUtils.escapeHtml(memberDescription, true, false);
//    theText = StringUtils.replace(theText, "{0}", memberDescription);
//    return theText;
//  }

  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy