blob: 0598f97091c35452715cdfcd7f6ff4eea9d7e99b [file] [log] [blame]
/**
* Copyright (c) 2010 Mia-Software.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*
* Nicolas Guyomar (Mia-Software) - initial API and implementation
*/
package org.eclipse.modisco.jee.ejbjar.EjbJar21;
import java.lang.String;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Security Role Ref Type</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
*
*
* The security-role-refType contains the declaration of a
* security role reference in a component's or a
* Deployment Component's code. The declaration consists of an
* optional description, the security role name used in the
* code, and an optional link to a security role. If the
* security role is not specified, the Deployer must choose an
* appropriate security role.
*
*
* <!-- end-model-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.eclipse.modisco.jee.ejbjar.EjbJar21.SecurityRoleRefType#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.modisco.jee.ejbjar.EjbJar21.SecurityRoleRefType#getRoleName <em>Role Name</em>}</li>
* <li>{@link org.eclipse.modisco.jee.ejbjar.EjbJar21.SecurityRoleRefType#getRoleLink <em>Role Link</em>}</li>
* <li>{@link org.eclipse.modisco.jee.ejbjar.EjbJar21.SecurityRoleRefType#getId <em>Id</em>}</li>
* </ul>
* </p>
*
* @see org.eclipse.modisco.jee.ejbjar.EjbJar21.EjbJar21Package#getSecurityRoleRefType()
* @model extendedMetaData="name='security-role-refType' kind='elementOnly'"
* @generated
*/
public interface SecurityRoleRefType extends EObject {
/**
* Returns the value of the '<em><b>Description</b></em>' containment reference list.
* The list contents are of type {@link org.eclipse.modisco.jee.ejbjar.EjbJar21.DescriptionType}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Description</em>' containment reference list isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Description</em>' containment reference list.
* @see org.eclipse.modisco.jee.ejbjar.EjbJar21.EjbJar21Package#getSecurityRoleRefType_Description()
* @model containment="true"
* extendedMetaData="kind='element' name='description' namespace='http://java.sun.com/xml/ns/j2ee'"
* @generated
*/
EList<DescriptionType> getDescription();
/**
* Returns the value of the '<em><b>Role Name</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
*
*
* The value of the role-name element must be the String used
* as the parameter to the
* EJBContext.isCallerInRole(String roleName) method or the
* HttpServletRequest.isUserInRole(String role) method.
*
*
* <!-- end-model-doc -->
* @return the value of the '<em>Role Name</em>' containment reference.
* @see #setRoleName(RoleNameType)
* @see org.eclipse.modisco.jee.ejbjar.EjbJar21.EjbJar21Package#getSecurityRoleRefType_RoleName()
* @model containment="true" required="true"
* extendedMetaData="kind='element' name='role-name' namespace='http://java.sun.com/xml/ns/j2ee'"
* @generated
*/
RoleNameType getRoleName();
/**
* Sets the value of the '{@link org.eclipse.modisco.jee.ejbjar.EjbJar21.SecurityRoleRefType#getRoleName <em>Role Name</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Role Name</em>' containment reference.
* @see #getRoleName()
* @generated
*/
void setRoleName(RoleNameType value);
/**
* Returns the value of the '<em><b>Role Link</b></em>' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* <!-- begin-model-doc -->
*
*
* The role-link element is a reference to a defined
* security role. The role-link element must contain
* the name of one of the security roles defined in the
* security-role elements.
*
*
* <!-- end-model-doc -->
* @return the value of the '<em>Role Link</em>' containment reference.
* @see #setRoleLink(RoleNameType)
* @see org.eclipse.modisco.jee.ejbjar.EjbJar21.EjbJar21Package#getSecurityRoleRefType_RoleLink()
* @model containment="true"
* extendedMetaData="kind='element' name='role-link' namespace='http://java.sun.com/xml/ns/j2ee'"
* @generated
*/
RoleNameType getRoleLink();
/**
* Sets the value of the '{@link org.eclipse.modisco.jee.ejbjar.EjbJar21.SecurityRoleRefType#getRoleLink <em>Role Link</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Role Link</em>' containment reference.
* @see #getRoleLink()
* @generated
*/
void setRoleLink(RoleNameType value);
/**
* Returns the value of the '<em><b>Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Id</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Id</em>' attribute.
* @see #setId(String)
* @see org.eclipse.modisco.jee.ejbjar.EjbJar21.EjbJar21Package#getSecurityRoleRefType_Id()
* @model id="true" dataType="org.eclipse.emf.ecore.xml.type.ID"
* extendedMetaData="kind='attribute' name='id'"
* @generated
*/
String getId();
/**
* Sets the value of the '{@link org.eclipse.modisco.jee.ejbjar.EjbJar21.SecurityRoleRefType#getId <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Id</em>' attribute.
* @see #getId()
* @generated
*/
void setId(String value);
} // SecurityRoleRefType