info.magnolia.jcr.util
Class NodeTypes

java.lang.Object
  extended by info.magnolia.jcr.util.NodeTypes

public class NodeTypes
extends Object

Magnolia defined NodeTypes together with their properties and some convenience methods.


Nested Class Summary
static class NodeTypes.Activatable
          Represents the mixin mgnl:activatable.
static class NodeTypes.Area
          Represents the nodeType mgnl:area.
static class NodeTypes.Component
          Represents the nodeType mgnl:component.
static class NodeTypes.Content
          Represents the nodeType mgnl:content.
static class NodeTypes.ContentNode
          Represents the nodeType mgnl:contentNode.
static class NodeTypes.Created
          Represents the mixin mgnl:created.
static class NodeTypes.Deleted
          Represents the mixin mgnl:deleted.
static class NodeTypes.Folder
          Represents the nodeType mgnl:folder.
static class NodeTypes.Group
          Represents the nodeType mgnl:group.
static class NodeTypes.LastModified
          Represents the mixin mgnl:lastModified.
static class NodeTypes.MetaData
          Represents the nodeType mgnl:metaData.
static class NodeTypes.NodeData
          Represents the nodeType mgnl:nodeData.
static class NodeTypes.Page
          Represents the nodeType mgnl:page.
static class NodeTypes.Renderable
          Represents the mixin mgnl:renderable.
static class NodeTypes.Resource
          Represents the nodeType mgnl:resource.
static class NodeTypes.Role
          Represents the nodeType mgnl:role.
static class NodeTypes.System
          Represents the nodeType mgnl:reserve.
static class NodeTypes.User
          Represents the nodeType mgnl:user.
static class NodeTypes.Versionable
          Represents the mixin mgnl:versionable.
 
Field Summary
static String JCR_PREFIX
          Namespace for jcr properties.
static String MGNL_PREFIX
          Namespace for Magnolia extensions.
 
Constructor Summary
NodeTypes()
           
 
Method Summary
static void checkNodeType(javax.jcr.Node node, String nodeType, String... propertyNames)
           
protected static Calendar getCurrentCalendar()
           
protected static String getCurrentUserName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MGNL_PREFIX

public static final String MGNL_PREFIX
Namespace for Magnolia extensions.

See Also:
Constant Field Values

JCR_PREFIX

public static final String JCR_PREFIX
Namespace for jcr properties.

See Also:
Constant Field Values
Constructor Detail

NodeTypes

public NodeTypes()
Method Detail

getCurrentUserName

protected static String getCurrentUserName()

getCurrentCalendar

protected static Calendar getCurrentCalendar()

checkNodeType

public static void checkNodeType(javax.jcr.Node node,
                                 String nodeType,
                                 String... propertyNames)
                          throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.