All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.jcr.retention.Hold Maven / Gradle / Ivy

There is a newer version: 2024.9.17689.20240905T073330Z-240800
Show newest version
/*
 * Copyright 2008 Day Management AG, Switzerland. All rights reserved.
 */
package javax.jcr.retention;

import javax.jcr.RepositoryException;

/**
 * Hold represents a hold that can be applied to an existing node
 * in order to prevent the node from being modified or removed. The format and
 * interpretation of the name are not specified. They are
 * application-dependent.
 * 

* If {@link #isDeep()} is true, the hold applies to the node and * its entire subgraph. Otherwise the hold applies to the node and its * properties only. * * @see RetentionManager#getHolds(String) * @see RetentionManager#addHold(String, String, boolean) * @see RetentionManager#removeHold(String, Hold) * @since JCR 2.0 */ public interface Hold { /** * Returns true if this Hold is deep. * * @return true if this Hold is deep. * @throws RepositoryException if an error occurs. */ public boolean isDeep() throws RepositoryException; /** * Returns the name of this Hold. A JCR name. * * @return the name of this Hold. A JCR name. * @throws RepositoryException if an error occurs. */ public String getName() throws RepositoryException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy