Package javax.jcr
Provides interfaces and classes for the Content Repository for Java Technology.
-
Interface Summary Interface Description Binary ABinaryobject holds a JCR property value of typeBINARY.Credentials Interface for all credentials that may be passed to theRepository.login(Credentials credentials, String workspaceName)method.ImportUUIDBehavior 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).Item ItemVisitor This interface defines two signatures of thevisitmethod; one taking aNode, the other aProperty.NamespaceRegistry Each repository has a single, persistent namespace registry represented by theNamespaceRegistryobject, accessed viaWorkspace.getNamespaceRegistry().Node TheNodeinterface represents a node in a workspace.NodeIterator Allows easy iteration through a list ofNodes withnextNodeas well as askipmethod inherited fromRangeIterator.Property APropertyobject represents the smallest granularity of content storage.PropertyIterator Allows easy iteration through a list ofPropertys withnextPropertyas well as askipmethod.RangeIterator ExtendsIteratorwith theskip,getSizeandgetPositionmethods.Repository The entry point into the content repository.RepositoryFactory RepositoryFactoryis a factory forRepositoryobjects.Session TheSessionobject provides read and (in level 2) write access to the content of a particular workspace in the repository.Value A generic holder for the value of a property.ValueFactory TheValueFactoryobject provides methods for the creation Value objects that can then be used to set properties.Workspace AWorkspaceobject represents a view onto a persitent workspace within a repository. -
Class Summary Class Description GuestCredentials GuestCredentialsimplements theCredentialsinterface and is used to obtain a "guest", "public" or "anonymous" session.PropertyType The property types supported by the JCR standard.SimpleCredentials SimpleCredentialsimplements theCredentialsinterface and represents simple user ID/password credentials. -
Exception Summary Exception Description AccessDeniedException Exception thrown by access-related methods.InvalidItemStateException 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.InvalidLifecycleTransitionException Exception thrown by Lifecycle management-related methods.InvalidSerializedDataException Exception thrown by the deserialization methods ofSessionif the serialized data being input has an invalid format.ItemExistsException An exception thrown when an attempt is made to place an item in a position where another item already exists.ItemNotFoundException LoginException Exception thrown byandRepository.login(Credentials, String)if the specified credentials are invalid.Session.impersonate(Credentials)MergeException Exception thrown byNode.merge(String srcWorkspace, boolean isDeep).NamespaceException Exception thrown byif the specifiedSession.setNamespacePrefix(String prefix, String uri)uriis not registered in theNamespaceRegistry.NoSuchWorkspaceException Exception thrown bywhen a specific workspace is not found.Repository.login(Credentials, String)PathNotFoundException Exception thrown when noItemexists at the specified path or when the specified path implies intermediaryNodes that do not exist.ReferentialIntegrityException Exception thrown on referential integrity violation.RepositoryException Main exception thrown by classes in this package.UnsupportedRepositoryOperationException Thrown by methods that are not supported by a particular implementation.ValueFormatException 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.