org.apache.jackrabbit.core.retention
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 the RetentionPolicy interface.
createRetentionPolicy
public static RetentionPolicy createRetentionPolicy(String jcrName,
Session session)
throws RepositoryException
- Creates a new
RetentionPolicy that can be applied to a
Node using RetentionManager.setRetentionPolicy(String, javax.jcr.retention.RetentionPolicy).
- Parameters:
jcrName - The name of the policy. It must be a valid JCR name.session - The editing Session 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 interface RetentionPolicy
- Throws:
RepositoryException- See Also:
RetentionPolicy.getName()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
- See Also:
Object.hashCode()
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
- See Also:
Object.equals(Object)
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.