org.mycore.datamodel.common
Class MCRActiveLinkException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.mycore.common.MCRCatchException
org.mycore.datamodel.common.MCRActiveLinkException
- All Implemented Interfaces:
- Serializable
public class MCRActiveLinkException
- extends MCRCatchException
This exception holds information about a link condition that did not allow a
certain action to be performed.
As this exception does not extend RuntimeException it has to be caught for
data integrity reasons.
- Author:
- Thomas Scheffler (yagee)
- See Also:
- Serialized Form
linkTable
Map<String,Collection<String>> linkTable
MCRActiveLinkException
public MCRActiveLinkException(String message)
- See Also:
MCRCatchException.MCRCatchException(String)
MCRActiveLinkException
public MCRActiveLinkException(String message,
Throwable cause)
- See Also:
MCRCatchException.MCRCatchException(String, Throwable)
getActiveLinks
public Map<String,Collection<String>> getActiveLinks()
- Returns:
- a Hashtable with destinations (key) and List of sources (value)
addLink
public void addLink(String source,
String dest)
- collects information on active links that do not permit a certain action
on the repository.
- Parameters:
source - the source of a linkdest - the destination of a link