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-mixinOperation
which callsBatch.setMixins(NodeId, Name[])
when applied to aBatch
.
-
-
Field Summary
Fields Modifier and Type Field Description protected NodeId
nodeId
protected Name
primaryTypeName
-
Constructor Summary
Constructors Constructor Description SetPrimaryType(NodeId nodeId, Name primaryTypeName)
Create a new set-mixinOperation
for the given arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Batch batch)
Apply this operation to the givenBatch
boolean
equals(Object other)
boolean
equals(Operations.SetPrimaryType other)
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SetPrimaryType
public SetPrimaryType(NodeId nodeId, Name primaryTypeName)
Create a new set-mixinOperation
for the given arguments.- Parameters:
nodeId
-primaryTypeName
-- See Also:
Batch.setMixins(NodeId, Name[])
-
-
Method Detail
-
apply
public void apply(Batch batch) throws RepositoryException
Apply this operation to the givenBatch
- Specified by:
apply
in interfaceOperation
- Throws:
RepositoryException
-
equals
public boolean equals(Operations.SetPrimaryType other)
-
-