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 theRetentionPolicyinterface.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetentionPolicycreateRetentionPolicy(String jcrName, Session session)Creates a newRetentionPolicythat can be applied to aNodeusingRetentionManager.setRetentionPolicy(String, javax.jcr.retention.RetentionPolicy).booleanequals(Object obj)StringgetName()inthashCode()
-
-
-
Method Detail
-
createRetentionPolicy
public static RetentionPolicy createRetentionPolicy(String jcrName, Session session) throws RepositoryException
Creates a newRetentionPolicythat can be applied to aNodeusingRetentionManager.setRetentionPolicy(String, javax.jcr.retention.RetentionPolicy).- Parameters:
jcrName- The name of the policy. It must be a valid JCR name.session- The editingSessionfrom 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:
getNamein interfaceRetentionPolicy- Throws:
RepositoryException- See Also:
RetentionPolicy.getName()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(Object)
-
-