08-31-2012 05:13 AM
09-03-2012 07:51 AM
onPublishButtonClick: function SP_onPublishButtonClick()
{
this.options = {};
this.options.someOption = true;
this.options.anotherOption = "1,2,3";
this.options.thirdOption = 654;
// create the JSON object for the POST request.
var selectedChannelId = this.widgets.selectChannelButton.get("value"),
publishData =
{
"channelId": selectedChannelId,
"publishNodes": [this.showConfig.nodeRef],
"statusUpdate": {},
"comment": this.options
},
…
public void publish(NodeRef nodeToPublish, Map<QName, Serializable> properties) {
NodeService nodeService = getNodeService();
if (nodeService != null) {
try {
List<AssociationRef> lar = nodeService.getTargetAssocs(nodeToPublish, PublishingModel.ASSOC_LAST_PUBLISHING_EVENT);
if (lar != null)
{
AssociationRef lastEvent = lar.get(0);
if (lastEvent != null)
{
NodeRef lastEventNode = lastEvent.getTargetRef();
String comment = (String) nodeService.getProperty(lastEventNode, PublishingModel.PROP_PUBLISHING_EVENT_COMMENT);
log.info(comment);
}
}
…
12-05-2012 10:41 AM
public static final QName PROP_PUBLISHING_EVENT_OPTIONS = QName.createQName(NAMESPACE, "publishingEventOptions");
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.