Constructors Summary |
---|
public MessageSecurityConfig()
this(Common.USE_DEFAULT_VALUES);
|
public MessageSecurityConfig(int options)
super(comparators, runtimeVersion);
// Properties (see root bean comments for the bean graph)
initPropertyTables(1);
this.createProperty("provider-config", PROVIDER_CONFIG,
Common.TYPE_1_N | Common.TYPE_BEAN | Common.TYPE_KEY,
ProviderConfig.class);
this.createAttribute(PROVIDER_CONFIG, "provider-id", "ProviderId",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(PROVIDER_CONFIG, "provider-type", "ProviderType",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(PROVIDER_CONFIG, "class-name", "ClassName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.initialize(options);
|
Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addProviderConfig(ProviderConfig value)
return addProviderConfig(value, true);
|
public int | addProviderConfig(ProviderConfig value, boolean overwrite)
ProviderConfig old = getProviderConfigByProviderId(value.getProviderId());
if(old != null) {
throw new ConfigException(StringManager.getManager(MessageSecurityConfig.class).getString("cannotAddDuplicate", "ProviderConfig"));
}
return this.addValue(PROVIDER_CONFIG, value, overwrite);
|
public void | dump(java.lang.StringBuffer str, java.lang.String indent)
String s;
Object o;
org.netbeans.modules.schema2beans.BaseBean n;
str.append(indent);
str.append("ProviderConfig["+this.sizeProviderConfig()+"]"); // NOI18N
for(int i=0; i<this.sizeProviderConfig(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getProviderConfig(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(PROVIDER_CONFIG, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("MessageSecurityConfig\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getAuthLayer()Getter for AuthLayer of the Element message-security-config
return getAttributeValue(ServerTags.AUTH_LAYER);
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
return null;
|
public java.lang.String | getDefaultClientProvider()Getter for DefaultClientProvider of the Element message-security-config
return getAttributeValue(ServerTags.DEFAULT_CLIENT_PROVIDER);
|
public java.lang.String | getDefaultProvider()Getter for DefaultProvider of the Element message-security-config
return getAttributeValue(ServerTags.DEFAULT_PROVIDER);
|
public ProviderConfig | getProviderConfig(int index)
return (ProviderConfig)this.getValue(PROVIDER_CONFIG, index);
|
public ProviderConfig[] | getProviderConfig()
return (ProviderConfig[])this.getValues(PROVIDER_CONFIG);
|
public ProviderConfig | getProviderConfigByProviderId(java.lang.String id)
if (null != id) { id = id.trim(); }
ProviderConfig[] o = getProviderConfig();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.PROVIDER_ID)).equals(id)) {
return o[i];
}
}
return null;
|
protected java.lang.String | getRelativeXPath()get the xpath representation for this element
returns something like abc[@name='value'] or abc
depending on the type of the bean
String ret = null;
ret = "message-security-config" + (canHaveSiblings() ? "[@auth-layer='" + getAttributeValue("auth-layer") +"']" : "") ;
return (null != ret ? ret.trim() : null);
|
void | initialize(int options)
|
public ProviderConfig | newProviderConfig()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ProviderConfig();
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeProviderConfig(ProviderConfig value)
return this.removeValue(PROVIDER_CONFIG, value);
|
public int | removeProviderConfig(ProviderConfig value, boolean overwrite)
return this.removeValue(PROVIDER_CONFIG, value, overwrite);
|
public void | setAuthLayer(java.lang.String v, boolean overwrite)Modify the AuthLayer of the Element message-security-config
setAttributeValue(ServerTags.AUTH_LAYER, v, overwrite);
|
public void | setAuthLayer(java.lang.String v)Modify the AuthLayer of the Element message-security-config
setAttributeValue(ServerTags.AUTH_LAYER, v);
|
public void | setDefaultClientProvider(java.lang.String v, boolean overwrite)Modify the DefaultClientProvider of the Element message-security-config
setAttributeValue(ServerTags.DEFAULT_CLIENT_PROVIDER, v, overwrite);
|
public void | setDefaultClientProvider(java.lang.String v)Modify the DefaultClientProvider of the Element message-security-config
setAttributeValue(ServerTags.DEFAULT_CLIENT_PROVIDER, v);
|
public void | setDefaultProvider(java.lang.String v, boolean overwrite)Modify the DefaultProvider of the Element message-security-config
setAttributeValue(ServerTags.DEFAULT_PROVIDER, v, overwrite);
|
public void | setDefaultProvider(java.lang.String v)Modify the DefaultProvider of the Element message-security-config
setAttributeValue(ServerTags.DEFAULT_PROVIDER, v);
|
public void | setProviderConfig(ProviderConfig[] value)
this.setValue(PROVIDER_CONFIG, value);
|
public int | sizeProviderConfig()
return this.size(PROVIDER_CONFIG);
|
public void | validate()
|