03-21-2011 06:54 AM
<actionSet id="document">
<action type="action-link" id="onActionArchive" permission="archive" label="actions.document.archive" />
<action type="action-link" id="onActionRestore" permission="restore" label="actions.document.restore" />
documentAndFolder: function Evaluator_documentAndFolder(node, permissions, status, actionLabels)
{
…
/* Set permissions for archiving */
try
{
/* restore only if archived */
if (node.hasAspect("ra:archived"))
{
permissions["restore"] = true;
}
/* always allowed to archive */
permissions["archive"] = true;
}
catch (e)
{
/* eat exception thrown if Folders archiving not installed */
logger.log("Folders archiving content model is not installed!");
}
…
UIContextService.getInstance(FacesContext.getCurrentInstance()).notifyBeans();
03-21-2011 07:46 AM
YAHOO.Bubbling.fire("metadataRefresh");
this.modules.actions.genericAction(
{
success:
{
event:
{
name: "metadataRefresh"
},
…
03-21-2011 12:32 PM
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.