op.setSubject(new AsnSubject(asnSet.getURNPrefix()));
op.getSubject().setRequiresValuePart(false);
op.setPredicate(new AsnPredicate(actionPfx+":uiresources"));
op.setAuthPolicy(authForRead.duplicate());
ops.add(op);
AsnProperty uiResources = new AsnProperty(
asnSet.getURNPrefix(),asnSet.getURNPrefix()+":uiresources",null);
op.setUIResources(uiResources);
String pfx = asnSet.getURNPrefix()+":uiresource";
uiResources.getChildren().add(new AsnUIResource(
pfx+":maxLength",null,""+maxLength));
uiResources.getChildren().add(new AsnUIResource(
pfx+":caption","catalog.asn.comment.caption","Comments"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":addComment","catalog.asn.comment.addComment","Add a comment:"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":postComment","catalog.asn.comment.postComment","Post"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":disabledComment","catalog.asn.comment.disabledComment","Disabled"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":emptyComment","catalog.asn.comment.emptyComment","Please enter a comment."));
uiResources.getChildren().add(new AsnUIResource(
pfx+":enableTip","catalog.asn.comment.enableTip","Enable"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":disableTip","catalog.asn.comment.disableTip","Disable"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":editTip","catalog.asn.comment.editTip","Edit"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":editedTip","catalog.asn.comment.editedTip","Edited"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":deleteTip","catalog.asn.comment.deleteTip","Delete"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":deletePrompt","catalog.asn.comment.deletePrompt",
"Are you sure you want to delete this comment?"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":more","catalog.asn.comment.more","more"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":editIcon",null,"asn-edit.png"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":deleteIcon",null,"asn-delete.png"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":enableIcon",null,"asn-enable.png"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":disableIcon",null,"asn-disable.png"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":editIcon",null,"asn-edit.png"));
uiResources.getChildren().add(new AsnUIResource(
pfx+":deleteIcon",null,"asn-delete.png"));
}
}