org.apache.jackrabbit.spi.commons.batch
Class Operations.SetPrimaryType
java.lang.Object
org.apache.jackrabbit.spi.commons.batch.Operations.SetPrimaryType
- All Implemented Interfaces:
- Operation
- Direct Known Subclasses:
- ConsolidatingChangeLog.CancelableOperations.SetPrimaryType
- Enclosing class:
- Operations
public static class Operations.SetPrimaryType
- extends Object
- implements Operation
Representative of a set-mixin Operation which calls
Batch.setMixins(NodeId, Name[]) when applied to a Batch.
|
Field Summary |
protected org.apache.jackrabbit.spi.NodeId |
nodeId
|
protected org.apache.jackrabbit.spi.Name |
primaryTypeName
|
|
Constructor Summary |
Operations.SetPrimaryType(org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.Name primaryTypeName)
Create a new set-mixin Operation for the given arguments. |
nodeId
protected final org.apache.jackrabbit.spi.NodeId nodeId
primaryTypeName
protected final org.apache.jackrabbit.spi.Name primaryTypeName
Operations.SetPrimaryType
public Operations.SetPrimaryType(org.apache.jackrabbit.spi.NodeId nodeId,
org.apache.jackrabbit.spi.Name primaryTypeName)
- Create a new set-mixin
Operation for the given arguments.
- Parameters:
nodeId - primaryTypeName - - See Also:
Batch.setMixins(NodeId, Name[])
apply
public void apply(org.apache.jackrabbit.spi.Batch batch)
throws RepositoryException
- Apply this operation to the given
Batch
- Specified by:
apply in interface Operation
- Throws:
RepositoryException
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
equals
public boolean equals(Operations.SetPrimaryType other)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.