org.apache.jackrabbit.core.retention
Class RetentionPolicyImpl

java.lang.Object
  extended by org.apache.jackrabbit.core.retention.RetentionPolicyImpl
All Implemented Interfaces:
RetentionPolicy

public class RetentionPolicyImpl
extends Object
implements RetentionPolicy

Basic implementation of the RetentionPolicy interface.


Method Summary
static RetentionPolicy createRetentionPolicy(String jcrName, Session session)
          Creates a new RetentionPolicy that can be applied to a Node using RetentionManager.setRetentionPolicy(String, org.apache.jackrabbit.api.jsr283.retention.RetentionPolicy).
 boolean equals(Object obj)
           
 String getName()
          Returns the name of the retention policy.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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, org.apache.jackrabbit.api.jsr283.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
Description copied from interface: RetentionPolicy
Returns the name of the retention policy. A JCR name.

Specified by:
getName in interface RetentionPolicy
Returns:
the name of the access control policy. A JCR name.
Throws:
RepositoryException - if an error occurs.
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-2009 The Apache Software Foundation. All Rights Reserved.