/** * This returns the parent of the SecurityRole. */ public Object getParent(Object object) { return object == null ? null : ((SecurityRole) object).eContainer(); }
/** * Default implementation returns <code>resourceEnvRef.getName()</code>. */ public String getJNDINameForRef(EnterpriseBean bean, ResourceEnvRef resourceEnvRef) { return resourceEnvRef.getName(); }
public EObject createEMFObject(String nodeName, String readAheadName) { CommonFactory fact = CommonFactory.eINSTANCE; if (RUN_AS.equals(readAheadName)) { RunAsSpecifiedIdentity result = fact.createRunAsSpecifiedIdentity(); result.setIdentity(fact.createIdentity()); return result; } else if (USE_CALLER_IDENTITY.equals(readAheadName)) return fact.createUseCallerIdentity(); else return null; }
/** * Default implementation returns <code>securityRoleRef.getName()</code>. */ public String getJNDINameForRef(EnterpriseBean bean, SecurityRoleRef securityRoleRef) { return securityRoleRef.getName(); }
/** * This returns the parent of the ResourceRef. */ public Object getParent(Object object) { return object == null ? null : ((ResourceRef) object).eContainer(); }
/** * Default implementation returns <code>resourceRef.getName()</code>. */ public String getJNDINameForRef(WebApp webApp, ResourceRef resourceRef) { return resourceRef.getName(); }
/** * This returns the parent of the EjbRef. */ public Object getParent(Object object) { return object == null ? null : ((EjbRef) object).eContainer(); }
/** * This returns the servlet of the SecurityRoleRef. */ public Object getParent(Object object) { return object == null ? null : ((SecurityRoleRef) object).eContainer(); }
/** * Performs the command activity required to <code>undo</code> the effects of a preceding * <code>execute</code> (or <code>redo</code>). The effect, if any, of calling * <code>undo</code> before <code>execute</code> or <code>redo</code> have been called, or * when canUndo returns <code>false</code>, is undefined. */ public void undo() { if (oldIsSet_) eObject_.eSet(feature_, oldValue_); else eObject_.eUnset(feature_); }
/** * This returns the parent of the ResourceRef. */ public Object getParent(Object object) { return object == null ? null : ((ResourceEnvRef) object).eContainer(); }
public String getText(Object object) { Listener listener = (Listener) object; String name = listener.getListenerClassName(); if (name == null) name = "<listener>"; //$NON-NLS-1$ return name; }
public ResAuthTranslator() { super(RES_AUTH, CommonPackage.eINSTANCE.getResourceRef_Auth()); }
public EnvEntryTypeTranslator() { super(ENV_ENTRY_TYPE, CommonPackage.eINSTANCE.getEnvEntry_Type()); }
public String getText(Object object) { SecurityIdentity securityIdentity = ((SecurityIdentity) object); return "SecurityIdentity " + securityIdentity.getDescription(); //$NON-NLS-1$ }
/** * This returns the parent of the EnvEntry. */ public Object getParent(Object object) { return object == null ? null : ((EnvEntry) object).eContainer(); }
public String getText(Object object) { RunAsSpecifiedIdentity runAsSpecifiedIdentity = ((RunAsSpecifiedIdentity) object); return "RunAsSpecifiedIdentity " + runAsSpecifiedIdentity.getDescription(); //$NON-NLS-1$ }
/** * Default implementation returns <code>resourceEnvRef.getName()</code>. */ public String getJNDINameForRef(WebApp webApp, ResourceEnvRef resourceEnvRef) { return resourceEnvRef.getName(); }
protected boolean isWeb(ResourceRef ref) { EObject owner = ref.eContainer(); return (owner instanceof WebApp); } protected boolean isWeb22(ResourceRef ref) {
/** * Default implementation returns <code>resourceRef.getName()</code>. */ public String getJNDINameForRef(EnterpriseBean bean, ResourceRef resourceRef) { return resourceRef.getName(); }