@Override public void addNodeAttributes(Element node) { super.addNodeAttributes(node); node.setAttribute("type", this.folderType); }
/** * Get the value of channelSubscribeId. * * @return value of channelSubscribeId. */ @Override public String getChannelSubscribeId() { return super.getId(); }
/** * Add all of common node attributes to the <code>Element</code>. * * @param node an <code>Element</code> value */ @Override public void addNodeAttributes(Element node) { node.setAttribute("ID", this.getId()); node.setAttribute("name", this.getName()); node.setAttribute("unremovable", String.valueOf(this.isUnremovable())); node.setAttribute("immutable", String.valueOf(this.isImmutable())); node.setAttribute("hidden", String.valueOf(this.isHidden())); if (!this.isDeleteAllowed()) node.setAttributeNS(Constants.NS_URI, Constants.ATT_DELETE_ALLOWED, "false"); if (!this.isMoveAllowed()) node.setAttributeNS(Constants.NS_URI, Constants.ATT_MOVE_ALLOWED, "false"); if (!this.isEditAllowed()) node.setAttributeNS(Constants.NS_URI, Constants.ATT_EDIT_ALLOWED, "false"); if (!this.isAddChildAllowed()) node.setAttributeNS(Constants.NS_URI, Constants.ATT_ADD_CHILD_ALLOWED, "false"); if (this.getPrecedence() != 0.0) node.setAttributeNS( Constants.NS_URI, Constants.ATT_PRECEDENCE, Double.toString(this.getPrecedence())); }
@Override public String toString() { return new ToStringBuilder(this) .append("ID", this.id) .append("name", this.name) .append("channel_or_folder?", this.getType()) .append("precedence", this.precedence) .append("moveAllowed", this.moveAllowed) .append("removable", !this.unremovable) .append("deleteAllowed", this.deleteAllowed) .append("immutable", this.immutable) .append("editAllowed", this.editAllowed) .append("precedence", this.precedence) .toString(); } }
@Override public IUserLayoutNodeDescription getNodeDescription(String nodeId) throws PortalException { Element element = layout.getElementById(nodeId); return UserLayoutNodeDescription.createUserLayoutNodeDescription(element); }
@Override public void addNodeAttributes(Element node) { super.addNodeAttributes(node); node.setAttribute("title", this.getTitle()); node.setAttribute("name", this.getName()); node.setAttribute("description", this.getDescription()); node.setAttribute("class", this.getClassName()); node.setAttribute("chanID", this.getChannelPublishId()); node.setAttribute("typeID", this.getChannelTypeId()); node.setAttribute("fname", this.getFunctionalName()); node.setAttribute("timeout", String.valueOf(this.getTimeout())); node.setAttribute("editable", String.valueOf(this.isEditable())); node.setAttribute("hasHelp", String.valueOf(this.hasHelp())); node.setAttribute("hasAbout", String.valueOf(this.hasAbout())); node.setAttribute("secure", String.valueOf(this.isSecure())); node.setAttribute("isPortlet", String.valueOf(this.isPortlet())); }