* definitions. See the message resources for how to provide the
* titles and descriptions for attributes and categories.
*/
try {
CoreServlet.getServlet().getUserDatabase().registerUserAttributeDefinition(
new UserAttributeDefinition(
UserAttributeDefinition.TYPE_STRING,
"sample1", "", 20000, "", "",
UserAttributeDefinition.USER_OVERRIDABLE_ATTRIBUTE,
10, "sample", false, "", "", true, true));
CoreServlet.getServlet().getUserDatabase().registerUserAttributeDefinition(
new UserAttributeDefinition(
UserAttributeDefinition.TYPE_STRING,
"sample2", "", 20000, "", "",
UserAttributeDefinition.USER_VIEWABLE_ATTRIBUTE,
20, "sample", false, "Default Sample 2 Value", "", true, true));
CoreServlet.getServlet().getUserDatabase().registerUserAttributeDefinition(
new UserAttributeDefinition(
UserAttributeDefinition.TYPE_STRING,
"sample3", "", 20001, "", "",
UserAttributeDefinition.USER_OVERRIDABLE_ATTRIBUTE,
20, "sample", false, "Default Sample 2 Value", "", true, true));
}