Package javax.jcr
package javax.jcr
Provides interfaces and classes for the Content Repository for Java Technology.
-
ClassDescriptionException thrown by access-related methods.A
Binaryobject holds a JCR property value of typeBINARY.Interface for all credentials that may be passed to theRepository.login(Credentials credentials, String workspaceName)method.GuestCredentialsimplements theCredentialsinterface and is used to obtain a "guest", "public" or "anonymous" session.The possible actions specified by theuuidBehaviorparameter inWorkspace.importXML(java.lang.String, java.io.InputStream, int),Session.importXML(java.lang.String, java.io.InputStream, int),Workspace.getImportContentHandler(java.lang.String, int)andSession.getImportContentHandler(java.lang.String, int).Exception thrown by the write methods ofNodeandPropertyand bySession.save()andSession.refresh(boolean)if an attempted change would conflict with a change to the persistent workspace made through anotherSession.Exception thrown by Lifecycle management-related methods.Exception thrown by the deserialization methods ofSessionif the serialized data being input has an invalid format.An exception thrown when an attempt is made to place an item in a position where another item already exists.This interface defines two signatures of thevisitmethod; one taking aNode, the other aProperty.Exception thrown byandRepository.login(Credentials, String)if the specified credentials are invalid.Session.impersonate(Credentials)Exception thrown byNode.merge(String srcWorkspace, boolean isDeep).Exception thrown byif the specifiedSession.setNamespacePrefix(String prefix, String uri)uriis not registered in theNamespaceRegistry.Each repository has a single, persistent namespace registry represented by theNamespaceRegistryobject, accessed viaWorkspace.getNamespaceRegistry().TheNodeinterface represents a node in a workspace.Allows easy iteration through a list ofNodes withnextNodeas well as askipmethod inherited fromRangeIterator.Exception thrown bywhen a specific workspace is not found.Repository.login(Credentials, String)Exception thrown when noItemexists at the specified path or when the specified path implies intermediaryNodes that do not exist.APropertyobject represents the smallest granularity of content storage.Allows easy iteration through a list ofPropertys withnextPropertyas well as askipmethod.The property types supported by the JCR standard.ExtendsIteratorwith theskip,getSizeandgetPositionmethods.Exception thrown on referential integrity violation.The entry point into the content repository.Main exception thrown by classes in this package.RepositoryFactoryis a factory forRepositoryobjects.TheSessionobject provides read and (in level 2) write access to the content of a particular workspace in the repository.SimpleCredentialsimplements theCredentialsinterface and represents simple user ID/password credentials.Thrown by methods that are not supported by a particular implementation.A generic holder for the value of a property.TheValueFactoryobject provides methods for the creation Value objects that can then be used to set properties.Exception thrown when an attempt is made to assign a value to a property that has an invalid format, given the type of the property.AWorkspaceobject represents a view onto a persitent workspace within a repository.