Class MixinUtil
- java.lang.Object
-
- de.valtech.aecu.core.groovy.console.bindings.actions.util.MixinUtil
-
public class MixinUtil extends Object
Utility class for mixin related actions- Author:
- Bart Thierens
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidensureMixin(javax.jcr.Node node, String mixin)Ensures a mixin is set on a node if it wasn't alreadystatic booleanhasMixin(javax.jcr.Node node, String mixin)Checks if a mixin is present on a node
-
-
-
Method Detail
-
hasMixin
public static boolean hasMixin(@Nonnull javax.jcr.Node node, @Nonnull String mixin) throws javax.jcr.RepositoryException
Checks if a mixin is present on a node- Parameters:
node- the non-null node to checkmixin- the non-null mixin to check (can be a non-existing mixin type)- Returns:
- true if the mixin is present on the node, otherwise false
- Throws:
javax.jcr.RepositoryException- if an exception occurs while performing repository operations
-
ensureMixin
public static void ensureMixin(@Nonnull javax.jcr.Node node, @Nonnull String mixin) throws javax.jcr.RepositoryException
Ensures a mixin is set on a node if it wasn't already- Parameters:
node- the non-null node to add the mixin tomixin- the non-null mixin to add- Throws:
javax.jcr.RepositoryException- if an exception occurs while performing repository operations
-
-