edu.internet2.middleware.grouper.grouperUi.beans.attributeNameUpdate.AttributeNameUpdateRequestContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grouper-ui Show documentation
Show all versions of grouper-ui Show documentation
Internet2 Groups Management User Interface
/*******************************************************************************
* 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: SimpleMembershipUpdateContainer.java,v 1.4 2009-11-02 08:50:40 mchyzer Exp $
*/
package edu.internet2.middleware.grouper.grouperUi.beans.attributeNameUpdate;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import edu.internet2.middleware.grouper.attr.AttributeDef;
import edu.internet2.middleware.grouper.attr.AttributeDefName;
import edu.internet2.middleware.grouper.ui.GrouperUiFilter;
/**
* bean for simple attribute update. holds all state for this module
*/
@SuppressWarnings("serial")
public class AttributeNameUpdateRequestContainer implements Serializable {
/**
* directed graph nodes from
*/
private List attributeNameGraphNodesFrom;
/**
* directed graph nodes to
*/
private List attributeNameGraphNodesTo;
/**
* starting points in graph
*/
private List attributeNameGraphStartingPoints;
/**
* starting points in graph
* @return starting points in graph
*/
public List getAttributeNameGraphStartingPoints() {
return this.attributeNameGraphStartingPoints;
}
/**
* starting points in graph
* @param startingPoints1
*/
public void setAttributeNameGraphStartingPoints(List startingPoints1) {
this.attributeNameGraphStartingPoints = startingPoints1;
}
/**
* directed graph nodes from
* @return directed graph nodes from
*/
public List getAttributeNameGraphNodesFrom() {
return this.attributeNameGraphNodesFrom;
}
/**
* directed graph nodes from
* @param attributeNameGraphNodesFrom1
*/
public void setAttributeNameGraphNodesFrom(List attributeNameGraphNodesFrom1) {
this.attributeNameGraphNodesFrom = attributeNameGraphNodesFrom1;
}
/**
* directed graph nodes to
* @return directed graph nodes to
*/
public List getAttributeNameGraphNodesTo() {
return this.attributeNameGraphNodesTo;
}
/**
* directed graph nodes to
* @param attributeNameGraphNodesTo1
*/
public void setAttributeNameGraphNodesTo(List attributeNameGraphNodesTo1) {
this.attributeNameGraphNodesTo = attributeNameGraphNodesTo1;
}
/** attribute definition to filter by */
private AttributeDef attributeDefForFilter = null;
/** if there is an attribute def on the new or edit screen */
private AttributeDef attributeDef = null;
/** attribute def names that imply this */
private Set attributeDefNamesThatImplyThis = null;
/** attribute def names implied by this */
private Set attributeDefNamesImpliedByThis = null;
/** attribute def names that imply this immediate */
private Set attributeDefNamesThatImplyThisImmediate = null;
/** attribute def names implied by this immediate */
private Set attributeDefNamesImpliedByThisImmediate = null;
/** all attribute def names for current attribute def **/
private Set allAttributeDefNamesForCurrentAttributeDef = null;
/**
* attribute def names that imply this immediate
* @return attribute def names that imply this immediate
*/
public Set getAttributeDefNamesThatImplyThisImmediate() {
return this.attributeDefNamesThatImplyThisImmediate;
}
/**
* attribute def names that imply this immediate
* @param attributeDefNamesThatImplyThisImmediate1
*/
public void setAttributeDefNamesThatImplyThisImmediate(
Set attributeDefNamesThatImplyThisImmediate1) {
this.attributeDefNamesThatImplyThisImmediate = attributeDefNamesThatImplyThisImmediate1;
}
/**
* attribute def names implied by this immediate
* @return attribute def names implied by this immediate
*/
public Set getAttributeDefNamesImpliedByThisImmediate() {
return this.attributeDefNamesImpliedByThisImmediate;
}
/**
* attribute def names implied by this immediate
* @param attributeDefNamesImpliedByThisImmediate1
*/
public void setAttributeDefNamesImpliedByThisImmediate(
Set attributeDefNamesImpliedByThisImmediate1) {
this.attributeDefNamesImpliedByThisImmediate = attributeDefNamesImpliedByThisImmediate1;
}
/**
* attribute def names implied by this
* @return attribute def names implied by this
*/
public Set getAttributeDefNamesImpliedByThis() {
return this.attributeDefNamesImpliedByThis;
}
/**
* attribute def names implied by this
* @param attributeDefNamesImpliedByThis1
*/
public void setAttributeDefNamesImpliedByThis(
Set attributeDefNamesImpliedByThis1) {
this.attributeDefNamesImpliedByThis = attributeDefNamesImpliedByThis1;
}
/**
* attribute def names that imply this
* @return attribute def names that imply this
*/
public Set getAttributeDefNamesThatImplyThis() {
return this.attributeDefNamesThatImplyThis;
}
/**
* attribute def names that imply this
* @param attributeDefNamesThatImplyThis1
*/
public void setAttributeDefNamesThatImplyThis(
Set attributeDefNamesThatImplyThis1) {
this.attributeDefNamesThatImplyThis = attributeDefNamesThatImplyThis1;
}
/**
* @return all attribute def names for current attribute def
*/
public Set getAllAttributeDefNamesForCurrentAttributeDef() {
return allAttributeDefNamesForCurrentAttributeDef;
}
/**
* all attribute def names for current attribute def
* @param allAttributeDefNamesForCurrentAttributeDef
*/
public void setAllAttributeDefNamesForCurrentAttributeDef(
Set allAttributeDefNamesForCurrentAttributeDef) {
this.allAttributeDefNamesForCurrentAttributeDef = allAttributeDefNamesForCurrentAttributeDef;
}
/**
* if there is an attribute def on the new or edit screen
* @return attribute def
*/
public AttributeDef getAttributeDef() {
return this.attributeDef;
}
/**
* if there is an attribute def on the new or edit screen
* @param attributeDef1
*/
public void setAttributeDef(AttributeDef attributeDef1) {
this.attributeDef = attributeDef1;
}
/**
* attribute definition to filter by
* @return attribute defintion
*/
public AttributeDef getAttributeDefForFilter() {
return this.attributeDefForFilter;
}
/**
* attribute definition to filter by
* @param attributeDefForFilter1
*/
public void setAttributeDefForFilter(AttributeDef attributeDefForFilter1) {
this.attributeDefForFilter = attributeDefForFilter1;
}
/**
* store to session scope
*/
public void storeToRequest() {
HttpServletRequest httpServletRequest = GrouperUiFilter.retrieveHttpServletRequest();
httpServletRequest.setAttribute("attributeNameUpdateRequestContainer", this);
}
/**
* retrieveFromSession, cannot be null
* @return the app state in request scope
*/
public static AttributeNameUpdateRequestContainer retrieveFromRequestOrCreate() {
HttpServletRequest httpServletRequest = GrouperUiFilter.retrieveHttpServletRequest();
AttributeNameUpdateRequestContainer attributeNameUpdateRequestContainer =
(AttributeNameUpdateRequestContainer)httpServletRequest.getAttribute("attributeNameUpdateRequestContainer");
if (attributeNameUpdateRequestContainer == null) {
attributeNameUpdateRequestContainer = new AttributeNameUpdateRequestContainer();
attributeNameUpdateRequestContainer.storeToRequest();
}
return attributeNameUpdateRequestContainer;
}
/**
* text bean
* @return text bean
*/
public AttributeNameUpdateText getText() {
return AttributeNameUpdateText.retrieveSingleton();
}
/** attribute def name to edit */
private AttributeDefName attributeDefNameToEdit;
/**
* attribute def name to edit
* @return the attribute def name
*/
public AttributeDefName getAttributeDefNameToEdit() {
return this.attributeDefNameToEdit;
}
/**
* attribute def name to edit
* @param attributeDefNameToEdit1
*/
public void setAttributeDefNameToEdit(AttributeDefName attributeDefNameToEdit1) {
this.attributeDefNameToEdit = attributeDefNameToEdit1;
}
/** if this is a create as opposed to update */
private boolean create;
/**
* if this is a create as opposed to update
* @return if create
*/
public boolean isCreate() {
return this.create;
}
/**
* if this is a create as opposed to update
* @param create1
*/
public void setCreate(boolean create1) {
this.create = create1;
}
}