Methods Summary |
---|
public java.lang.String | getAuthorizationType()
return resAuth;
/* if (resAuth == null || resAuth.equals("Container"))
return AuthenticationType.CONTAINER;
else
return AuthenticationType.APPLICATION;*/
|
public java.lang.String | getJndiName()
return jndiName;
|
public java.lang.String | getMappedName()
return mappedName;
|
public java.lang.String | getResAuth()
return resAuth;
|
public java.lang.String | getResRefName()
return resRefName;
|
public java.lang.String | getResSharingScope()
return resSharingScope;
|
public java.lang.String | getResType()
return resType;
|
public java.lang.String | getResUrl()
return resUrl;
|
public java.lang.String | getResourceName()
return resourceName;
|
public boolean | isShareable()
if (resSharingScope == null || resSharingScope.equals("Shareable"))
return true;
else
return false;
|
public void | merge(org.jboss.metamodel.descriptor.ResourceRef ref)
if (ref.getJndiName() != null)
{
this.setJndiName(ref.getJndiName());
String mappedName = ref.getJndiName();
if (mappedName.startsWith("java:"))
this.setMappedName(ref.getJndiName());
else
this.setMappedName("java:" + ref.getJndiName());
}
if (ref.getResourceName() != null)
{
this.setResourceName(ref.getResourceName());
String mappedName = ref.getResourceName();
if (mappedName.startsWith("java:"))
this.setMappedName(ref.getResourceName());
else
this.setMappedName("java:" + ref.getResourceName());
}
|
public void | setJndiName(java.lang.String jndiName)
this.jndiName = jndiName;
|
public void | setMappedName(java.lang.String mappedName)
this.mappedName = mappedName;
|
public void | setResAuth(java.lang.String resAuth)
this.resAuth = resAuth;
|
public void | setResRefName(java.lang.String resRefName)
this.resRefName = resRefName;
|
public void | setResSharingScope(java.lang.String resSharingScope)
this.resSharingScope = resSharingScope;
|
public void | setResType(java.lang.String resType)
this.resType = resType;
|
public void | setResUrl(java.lang.String resUrl)
this.resUrl = resUrl;
|
public void | setResourceName(java.lang.String resourceName)
this.resourceName = resourceName;
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer(100);
sb.append("[" + this.getClass().getName() + ": ");
sb.append("resRefName=").append(resRefName);
sb.append(", jndiName=").append(jndiName);
sb.append(", resourceName=").append(resourceName);
sb.append(", resType=").append(resType);
sb.append(", mappedName=").append(mappedName);
sb.append(", injectionTarget=").append(injectionTarget);
sb.append("]");
return sb.toString();
|