public class RetentionPolicyImpl extends Object implements javax.jcr.retention.RetentionPolicy
RetentionPolicy
interface.Modifier and Type | Method and Description |
---|---|
static javax.jcr.retention.RetentionPolicy |
createRetentionPolicy(String jcrName,
javax.jcr.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 javax.jcr.retention.RetentionPolicy createRetentionPolicy(String jcrName, javax.jcr.Session session) throws javax.jcr.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
javax.jcr.RepositoryException
- If the jcr name isn't valid or if same other
error occurs.public String getName() throws javax.jcr.RepositoryException
getName
in interface javax.jcr.retention.RetentionPolicy
javax.jcr.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-2020 The Apache Software Foundation. All Rights Reserved.