Class RetentionPolicyImpl
- java.lang.Object
-
- org.apache.jackrabbit.core.retention.RetentionPolicyImpl
-
- All Implemented Interfaces:
RetentionPolicy
public class RetentionPolicyImpl extends Object implements RetentionPolicy
Basic implementation of theRetentionPolicy
interface.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetentionPolicy
createRetentionPolicy(String jcrName, Session session)
Creates a newRetentionPolicy
that can be applied to aNode
usingRetentionManager.setRetentionPolicy(String, javax.jcr.retention.RetentionPolicy)
.boolean
equals(Object obj)
String
getName()
int
hashCode()
-
-
-
Method Detail
-
createRetentionPolicy
public static RetentionPolicy createRetentionPolicy(String jcrName, Session session) throws RepositoryException
Creates a newRetentionPolicy
that can be applied to aNode
usingRetentionManager.setRetentionPolicy(String, javax.jcr.retention.RetentionPolicy)
.- Parameters:
jcrName
- The name of the policy. It must be a valid JCR name.session
- The editingSession
from which the retention manager will be obtained.- Returns:
- a new
RetentionPolicy
- Throws:
RepositoryException
- If the jcr name isn't valid or if same other error occurs.
-
getName
public String getName() throws RepositoryException
- Specified by:
getName
in interfaceRetentionPolicy
- Throws:
RepositoryException
- See Also:
RetentionPolicy.getName()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(Object)
-
-