Methods Summary |
---|
public int | addAuditModule(AuditModule value)
return addAuditModule(value, true);
|
public int | addAuditModule(AuditModule value, boolean overwrite)
AuditModule old = getAuditModuleByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate", "AuditModule"));
}
return this.addValue(AUDIT_MODULE, value, overwrite);
|
public int | addAuthRealm(AuthRealm value)
return addAuthRealm(value, true);
|
public int | addAuthRealm(AuthRealm value, boolean overwrite)
AuthRealm old = getAuthRealmByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate", "AuthRealm"));
}
return this.addValue(AUTH_REALM, value, overwrite);
|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addElementProperty(ElementProperty value)
return addElementProperty(value, true);
|
public int | addElementProperty(ElementProperty value, boolean overwrite)
ElementProperty old = getElementPropertyByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate", "ElementProperty"));
}
return this.addValue(ELEMENT_PROPERTY, value, overwrite);
|
public int | addJaccProvider(JaccProvider value)
return addJaccProvider(value, true);
|
public int | addJaccProvider(JaccProvider value, boolean overwrite)
JaccProvider old = getJaccProviderByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate", "JaccProvider"));
}
return this.addValue(JACC_PROVIDER, value, overwrite);
|
public int | addMessageSecurityConfig(MessageSecurityConfig value)
return addMessageSecurityConfig(value, true);
|
public int | addMessageSecurityConfig(MessageSecurityConfig value, boolean overwrite)
MessageSecurityConfig old = getMessageSecurityConfigByAuthLayer(value.getAuthLayer());
if(old != null) {
throw new ConfigException(StringManager.getManager(SecurityService.class).getString("cannotAddDuplicate", "MessageSecurityConfig"));
}
return this.addValue(MESSAGE_SECURITY_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("AuthRealm["+this.sizeAuthRealm()+"]"); // NOI18N
for(int i=0; i<this.sizeAuthRealm(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getAuthRealm(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(AUTH_REALM, i, str, indent);
}
str.append(indent);
str.append("JaccProvider["+this.sizeJaccProvider()+"]"); // NOI18N
for(int i=0; i<this.sizeJaccProvider(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getJaccProvider(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(JACC_PROVIDER, i, str, indent);
}
str.append(indent);
str.append("AuditModule["+this.sizeAuditModule()+"]"); // NOI18N
for(int i=0; i<this.sizeAuditModule(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getAuditModule(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(AUDIT_MODULE, i, str, indent);
}
str.append(indent);
str.append("MessageSecurityConfig["+this.sizeMessageSecurityConfig()+"]"); // NOI18N
for(int i=0; i<this.sizeMessageSecurityConfig(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getMessageSecurityConfig(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(MESSAGE_SECURITY_CONFIG, i, str, indent);
}
str.append(indent);
str.append("ElementProperty["+this.sizeElementProperty()+"]"); // NOI18N
for(int i=0; i<this.sizeElementProperty(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getElementProperty(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(ELEMENT_PROPERTY, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("SecurityService\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getAnonymousRole()Getter for AnonymousRole of the Element security-service
return getAttributeValue(ServerTags.ANONYMOUS_ROLE);
|
public AuditModule | getAuditModule(int index)
return (AuditModule)this.getValue(AUDIT_MODULE, index);
|
public AuditModule[] | getAuditModule()
return (AuditModule[])this.getValues(AUDIT_MODULE);
|
public AuditModule | getAuditModuleByName(java.lang.String id)
if (null != id) { id = id.trim(); }
AuditModule[] o = getAuditModule();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
|
public java.lang.String | getAuditModules()Getter for AuditModules of the Element security-service
return getAttributeValue(ServerTags.AUDIT_MODULES);
|
public AuthRealm | getAuthRealm(int index)
return (AuthRealm)this.getValue(AUTH_REALM, index);
|
public AuthRealm[] | getAuthRealm()
return (AuthRealm[])this.getValues(AUTH_REALM);
|
public AuthRealm | getAuthRealmByName(java.lang.String id)
if (null != id) { id = id.trim(); }
AuthRealm[] o = getAuthRealm();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
|
public static java.lang.String | getDefaultActivateDefaultPrincipalToRoleMapping()Get the default value of ActivateDefaultPrincipalToRoleMapping from dtd
return "false".trim();
|
public static java.lang.String | getDefaultAnonymousRole()Get the default value of AnonymousRole from dtd
return "AttributeDeprecated".trim();
|
public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
if(attr.equals(ServerTags.DEFAULT_REALM)) return "file".trim();
if(attr.equals(ServerTags.ANONYMOUS_ROLE)) return "AttributeDeprecated".trim();
if(attr.equals(ServerTags.AUDIT_ENABLED)) return "false".trim();
if(attr.equals(ServerTags.JACC)) return "default".trim();
if(attr.equals(ServerTags.AUDIT_MODULES)) return "default".trim();
if(attr.equals(ServerTags.ACTIVATE_DEFAULT_PRINCIPAL_TO_ROLE_MAPPING)) return "false".trim();
return null;
|
public static java.lang.String | getDefaultAuditEnabled()Get the default value of AuditEnabled from dtd
return "false".trim();
|
public static java.lang.String | getDefaultAuditModules()Get the default value of AuditModules from dtd
return "default".trim();
|
public static java.lang.String | getDefaultDefaultRealm()Get the default value of DefaultRealm from dtd
return "file".trim();
|
public static java.lang.String | getDefaultJacc()Get the default value of Jacc from dtd
return "default".trim();
|
public java.lang.String | getDefaultPrincipal()Getter for DefaultPrincipal of the Element security-service
return getAttributeValue(ServerTags.DEFAULT_PRINCIPAL);
|
public java.lang.String | getDefaultPrincipalPassword()Getter for DefaultPrincipalPassword of the Element security-service
return getAttributeValue(ServerTags.DEFAULT_PRINCIPAL_PASSWORD);
|
public java.lang.String | getDefaultRealm()Getter for DefaultRealm of the Element security-service
return getAttributeValue(ServerTags.DEFAULT_REALM);
|
public ElementProperty | getElementProperty(int index)
return (ElementProperty)this.getValue(ELEMENT_PROPERTY, index);
|
public ElementProperty[] | getElementProperty()
return (ElementProperty[])this.getValues(ELEMENT_PROPERTY);
|
public ElementProperty | getElementPropertyByName(java.lang.String id)
if (null != id) { id = id.trim(); }
ElementProperty[] o = getElementProperty();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
|
public java.lang.String | getJacc()Getter for Jacc of the Element security-service
return getAttributeValue(ServerTags.JACC);
|
public JaccProvider | getJaccProvider(int index)
return (JaccProvider)this.getValue(JACC_PROVIDER, index);
|
public JaccProvider[] | getJaccProvider()
return (JaccProvider[])this.getValues(JACC_PROVIDER);
|
public JaccProvider | getJaccProviderByName(java.lang.String id)
if (null != id) { id = id.trim(); }
JaccProvider[] o = getJaccProvider();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
|
public java.lang.String | getMappedPrincipalClass()Getter for MappedPrincipalClass of the Element security-service
return getAttributeValue(ServerTags.MAPPED_PRINCIPAL_CLASS);
|
public MessageSecurityConfig | getMessageSecurityConfig(int index)
return (MessageSecurityConfig)this.getValue(MESSAGE_SECURITY_CONFIG, index);
|
public MessageSecurityConfig[] | getMessageSecurityConfig()
return (MessageSecurityConfig[])this.getValues(MESSAGE_SECURITY_CONFIG);
|
public MessageSecurityConfig | getMessageSecurityConfigByAuthLayer(java.lang.String id)
if (null != id) { id = id.trim(); }
MessageSecurityConfig[] o = getMessageSecurityConfig();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.AUTH_LAYER)).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 = "security-service";
return (null != ret ? ret.trim() : null);
|
void | initialize(int options)
|
public boolean | isActivateDefaultPrincipalToRoleMapping()Getter for ActivateDefaultPrincipalToRoleMapping of the Element security-service
return toBoolean(getAttributeValue(ServerTags.ACTIVATE_DEFAULT_PRINCIPAL_TO_ROLE_MAPPING));
|
public boolean | isAuditEnabled()Getter for AuditEnabled of the Element security-service
return toBoolean(getAttributeValue(ServerTags.AUDIT_ENABLED));
|
public AuditModule | newAuditModule()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new AuditModule();
|
public AuthRealm | newAuthRealm()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new AuthRealm();
|
public ElementProperty | newElementProperty()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ElementProperty();
|
public JaccProvider | newJaccProvider()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new JaccProvider();
|
public MessageSecurityConfig | newMessageSecurityConfig()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new MessageSecurityConfig();
|
public int | removeAuditModule(AuditModule value)
return this.removeValue(AUDIT_MODULE, value);
|
public int | removeAuditModule(AuditModule value, boolean overwrite)
return this.removeValue(AUDIT_MODULE, value, overwrite);
|
public int | removeAuthRealm(AuthRealm value)
return this.removeValue(AUTH_REALM, value);
|
public int | removeAuthRealm(AuthRealm value, boolean overwrite)
return this.removeValue(AUTH_REALM, value, overwrite);
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeElementProperty(ElementProperty value)
return this.removeValue(ELEMENT_PROPERTY, value);
|
public int | removeElementProperty(ElementProperty value, boolean overwrite)
return this.removeValue(ELEMENT_PROPERTY, value, overwrite);
|
public int | removeJaccProvider(JaccProvider value)
return this.removeValue(JACC_PROVIDER, value);
|
public int | removeJaccProvider(JaccProvider value, boolean overwrite)
return this.removeValue(JACC_PROVIDER, value, overwrite);
|
public int | removeMessageSecurityConfig(MessageSecurityConfig value)
return this.removeValue(MESSAGE_SECURITY_CONFIG, value);
|
public int | removeMessageSecurityConfig(MessageSecurityConfig value, boolean overwrite)
return this.removeValue(MESSAGE_SECURITY_CONFIG, value, overwrite);
|
public void | setActivateDefaultPrincipalToRoleMapping(boolean v, boolean overwrite)Modify the ActivateDefaultPrincipalToRoleMapping of the Element security-service
setAttributeValue(ServerTags.ACTIVATE_DEFAULT_PRINCIPAL_TO_ROLE_MAPPING, ""+(v==true), overwrite);
|
public void | setActivateDefaultPrincipalToRoleMapping(boolean v)Modify the ActivateDefaultPrincipalToRoleMapping of the Element security-service
setAttributeValue(ServerTags.ACTIVATE_DEFAULT_PRINCIPAL_TO_ROLE_MAPPING, ""+(v==true));
|
public void | setAnonymousRole(java.lang.String v, boolean overwrite)Modify the AnonymousRole of the Element security-service
setAttributeValue(ServerTags.ANONYMOUS_ROLE, v, overwrite);
|
public void | setAnonymousRole(java.lang.String v)Modify the AnonymousRole of the Element security-service
setAttributeValue(ServerTags.ANONYMOUS_ROLE, v);
|
public void | setAuditEnabled(boolean v, boolean overwrite)Modify the AuditEnabled of the Element security-service
setAttributeValue(ServerTags.AUDIT_ENABLED, ""+(v==true), overwrite);
|
public void | setAuditEnabled(boolean v)Modify the AuditEnabled of the Element security-service
setAttributeValue(ServerTags.AUDIT_ENABLED, ""+(v==true));
|
public void | setAuditModule(AuditModule[] value)
this.setValue(AUDIT_MODULE, value);
|
public void | setAuditModules(java.lang.String v, boolean overwrite)Modify the AuditModules of the Element security-service
setAttributeValue(ServerTags.AUDIT_MODULES, v, overwrite);
|
public void | setAuditModules(java.lang.String v)Modify the AuditModules of the Element security-service
setAttributeValue(ServerTags.AUDIT_MODULES, v);
|
public void | setAuthRealm(AuthRealm[] value)
this.setValue(AUTH_REALM, value);
|
public void | setDefaultPrincipal(java.lang.String v, boolean overwrite)Modify the DefaultPrincipal of the Element security-service
setAttributeValue(ServerTags.DEFAULT_PRINCIPAL, v, overwrite);
|
public void | setDefaultPrincipal(java.lang.String v)Modify the DefaultPrincipal of the Element security-service
setAttributeValue(ServerTags.DEFAULT_PRINCIPAL, v);
|
public void | setDefaultPrincipalPassword(java.lang.String v, boolean overwrite)Modify the DefaultPrincipalPassword of the Element security-service
setAttributeValue(ServerTags.DEFAULT_PRINCIPAL_PASSWORD, v, overwrite);
|
public void | setDefaultPrincipalPassword(java.lang.String v)Modify the DefaultPrincipalPassword of the Element security-service
setAttributeValue(ServerTags.DEFAULT_PRINCIPAL_PASSWORD, v);
|
public void | setDefaultRealm(java.lang.String v, boolean overwrite)Modify the DefaultRealm of the Element security-service
setAttributeValue(ServerTags.DEFAULT_REALM, v, overwrite);
|
public void | setDefaultRealm(java.lang.String v)Modify the DefaultRealm of the Element security-service
setAttributeValue(ServerTags.DEFAULT_REALM, v);
|
public void | setElementProperty(ElementProperty[] value)
this.setValue(ELEMENT_PROPERTY, value);
|
public void | setJacc(java.lang.String v, boolean overwrite)Modify the Jacc of the Element security-service
setAttributeValue(ServerTags.JACC, v, overwrite);
|
public void | setJacc(java.lang.String v)Modify the Jacc of the Element security-service
setAttributeValue(ServerTags.JACC, v);
|
public void | setJaccProvider(JaccProvider[] value)
this.setValue(JACC_PROVIDER, value);
|
public void | setMappedPrincipalClass(java.lang.String v, boolean overwrite)Modify the MappedPrincipalClass of the Element security-service
setAttributeValue(ServerTags.MAPPED_PRINCIPAL_CLASS, v, overwrite);
|
public void | setMappedPrincipalClass(java.lang.String v)Modify the MappedPrincipalClass of the Element security-service
setAttributeValue(ServerTags.MAPPED_PRINCIPAL_CLASS, v);
|
public void | setMessageSecurityConfig(MessageSecurityConfig[] value)
this.setValue(MESSAGE_SECURITY_CONFIG, value);
|
public int | sizeAuditModule()
return this.size(AUDIT_MODULE);
|
public int | sizeAuthRealm()
return this.size(AUTH_REALM);
|
public int | sizeElementProperty()
return this.size(ELEMENT_PROPERTY);
|
public int | sizeJaccProvider()
return this.size(JACC_PROVIDER);
|
public int | sizeMessageSecurityConfig()
return this.size(MESSAGE_SECURITY_CONFIG);
|
public void | validate()
|