public class RetentionPolicyImpl extends Object implements RetentionPolicy
RetentionPolicy
interface.Modifier and Type | Method and Description |
---|---|
static RetentionPolicy |
createRetentionPolicy(String jcrName,
Session session)
Creates a new
RetentionPolicy that can be applied to a
Node using RetentionManager.setRetentionPolicy(String, javax.jcr.retention.RetentionPolicy) . |
boolean |
equals(Object obj) |
String |
getName() |
int |
hashCode() |
public static RetentionPolicy createRetentionPolicy(String jcrName, Session session) throws RepositoryException
RetentionPolicy
that can be applied to a
Node
using RetentionManager.setRetentionPolicy(String, javax.jcr.retention.RetentionPolicy)
.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.RetentionPolicy
RepositoryException
- If the jcr name isn't valid or if same other
error occurs.public String getName() throws RepositoryException
getName
in interface RetentionPolicy
RepositoryException
RetentionPolicy.getName()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.