| nxd |
The NXWebPlatform taglib specific to NXCore document model features. Exposes specific tags as well as utility functions like:
- typeInfo(DocumentModel): retrieve the document type information as described in the TypeService extension point.
- typeLabel(DocumentModel): retrieve the document type label.
- iconPath(DocumentModel): retrieve the document icon path from "common" schema", defaults to its document type icon if not set.
- iconExpandedPath(DocumentModel): retrieve the document icon-expanded path from "common" schema, defaults to its document type icon if not set.
- titleOrId(DocumentModel): retrieve the document title from "dublincore" schema, defaults to its identifier.
- hasPermission(DocumentModel, String): check if the current user has the specified permission on the document model.
- canModify(DocumentModel): check if the current user has the specified permission on the document model, and document model is not archived.
- defaultValue(String, String): get the default value for given schema name and field name: this is useful to set the "template" attribute of a nxu:inputList tag managing a document complex property.
- propertyDefaultValue(String): get the default value for given property name: this is useful to set the "template" attribute of a nxu:inputList tag managing a document complex property.
- fileUrl(String, DocumentModel, String, String): get the rest url for a blob.
- fileDescription(DocumentModel doc, String blobPropertyPath, String filenamePropertyPath): get the pretty-print description of a blob.
- documentUrl(DocumentModel): get the rest url for a document.
- liveEditDefaultUrl(DocumentModel): get the nxedit:// URL to edit a document file attachement (default File-like types)
- liveEditUrl(DocumentModel, String, String, String): get the nxedit:// URL to edit a document proviging schema, blob field and filename field names
- liveCreateDefaultUrl(String): get the nxedit:// url to create a new document of type File providing the mimetype as argument
- liveCreateUrl(String, String, String, String, String): get the nxedit:// url to create a new document with parameters: mimetype, doctype, schema, blob and filename field names
- liveCreateFromTemplateDefaultUrl(DocumentModel): get the nxedit:// URL to create a new document of type File reusing the content of the blob of the provided template DocumentModel (assumed to have the "file" schema).
- liveCreateFromTemplateUrl(DocumentModel, String, String, String, String, String, String, String): get the nxedit:// URL to create a new document from template. Parameters are: template DocumentModel, template schema, template blob field, target document type, target schema, target, blob field name, target filename field.
- propertyPath(String, int, String): builds the property path given the property list name, the index and the sub property name.
|
| nxu |
The NXWebPlatform (re)definition of basic tags. Basic tags can be seen as useful tags which are still not really specific to the Nuxeo 5 framework. Also exposes utility functions like:
- test(Boolean, Object, Object): performs the java "if-then-else" operation.
- join(String[], String): performs a join on given array using given separator.
- joinCollection(Collection, String): performs a join on given collection using given separator.
- userIsMemberOf(String): tests if the user belongs to the named group.
- userFullName(String): returns the full name of a user given its id.
- userDisplayName(String, String, String): returns the full name of a user given its id, first name and last name.
- printFileSize(String size): same as printFormatedFileSize( size, "SI", true)
- printFormatedFileSize(String size, String format, bollean isShort) pretty print the size of a file using the format given in its short or long form. The format available are "SI", "IEC" or "JEDEC". See the wikipedia article on Byte for more information on those format.
|
| nxdir |
NXDirectory tag library. Exposes specific tags as well as utility functions like:
- directoryEntry(String, String): gets the document model representing an entry for given directory name and entry id.
- directoryListEntries(String, Collection): gets the list of document models representing entries for given directory name and entry ids.
- directoryEntries(String, String[]): gets the list of document models representing entries for given directory name and entry ids.
- getLabelFromId(String, String): gets the Label of a vocabulary entry for the given id and vocabulary. Deprecated, use directoryEntry(String, String) which is more generic.
|
| nxl |
Tags for layout system usage. Defines helpers tags to display layouts and widgets. Note that some attributes are used to determine what components will be part of the jsf component tree, so they have to be resolved early: they cannot use variables like iteration variables, coming for instance from a ui:repeat or a h:dataTable tag. This is true for layout names, modes and widget instances.
|