|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.commons.AbstractSession
org.apache.jackrabbit.jcr2spi.SessionImpl
public class SessionImpl
SessionImpl...
| Field Summary |
|---|
| Fields inherited from interface javax.jcr.Session |
|---|
ACTION_ADD_NODE, ACTION_READ, ACTION_REMOVE, ACTION_SET_PROPERTY |
| Methods inherited from class org.apache.jackrabbit.commons.AbstractSession |
|---|
exportDocumentView, exportDocumentView, exportSystemView, exportSystemView, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Repository getRepository()
getRepository in interface SessionSession.getRepository()public String getUserID()
getUserID in interface SessionSession.getUserID()public Object getAttribute(String name)
null.
getAttribute in interface SessionSession.getAttribute(String)public String[] getAttributeNames()
getAttributeNames in interface SessionSession.getAttributeNames()public Workspace getWorkspace()
getWorkspace in interface SessionSession.getWorkspace()
public Session impersonate(Credentials credentials)
throws LoginException,
RepositoryException
impersonate in interface Sessionimpersonate in class org.apache.jackrabbit.commons.AbstractSessionLoginException
RepositoryExceptionSession.impersonate(Credentials)
public Node getRootNode()
throws RepositoryException
getRootNode in interface SessionRepositoryExceptionSession.getRootNode()
public Node getNodeByUUID(String uuid)
throws ItemNotFoundException,
RepositoryException
getNodeByUUID in interface SessionItemNotFoundException
RepositoryExceptionSession.getNodeByUUID(String)
public Item getItem(String absPath)
throws PathNotFoundException,
RepositoryException
getItem in interface SessiongetItem in class org.apache.jackrabbit.commons.AbstractSessionPathNotFoundException
RepositoryExceptionSession.getItem(String)
public boolean itemExists(String absPath)
throws RepositoryException
itemExists in interface SessionitemExists in class org.apache.jackrabbit.commons.AbstractSessionRepositoryExceptionSession.itemExists(String)
public void move(String srcAbsPath,
String destAbsPath)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
RepositoryException
move in interface SessionItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryExceptionSession.move(String, String)
public void save()
throws AccessDeniedException,
ConstraintViolationException,
InvalidItemStateException,
VersionException,
LockException,
RepositoryException
save in interface SessionAccessDeniedException
ConstraintViolationException
InvalidItemStateException
VersionException
LockException
RepositoryExceptionSession.save()
public void refresh(boolean keepChanges)
throws RepositoryException
refresh in interface SessionRepositoryExceptionSession.refresh(boolean)
public boolean hasPendingChanges()
throws RepositoryException
hasPendingChanges in interface SessionRepositoryExceptionSession.hasPendingChanges()
public ValueFactory getValueFactory()
throws UnsupportedRepositoryOperationException,
RepositoryException
getValueFactory in interface SessionUnsupportedRepositoryOperationException
RepositoryExceptionSession.getValueFactory()
public void checkPermission(String absPath,
String actions)
throws AccessControlException,
RepositoryException
checkPermission in interface SessionAccessControlException
RepositoryExceptionSession.checkPermission(String, String)
public ContentHandler getImportContentHandler(String parentAbsPath,
int uuidBehavior)
throws PathNotFoundException,
ConstraintViolationException,
VersionException,
LockException,
RepositoryException
getImportContentHandler in interface SessionPathNotFoundException
ConstraintViolationException
VersionException
LockException
RepositoryExceptionSession.getImportContentHandler(String, int)
public void importXML(String parentAbsPath,
InputStream in,
int uuidBehavior)
throws IOException,
PathNotFoundException,
ItemExistsException,
ConstraintViolationException,
VersionException,
InvalidSerializedDataException,
LockException,
RepositoryException
importXML in interface SessionimportXML in class org.apache.jackrabbit.commons.AbstractSessionIOException
PathNotFoundException
ItemExistsException
ConstraintViolationException
VersionException
InvalidSerializedDataException
LockException
RepositoryExceptionSession.importXML(String, java.io.InputStream, int)
public void setNamespacePrefix(String prefix,
String uri)
throws RepositoryException
setNamespacePrefix in interface SessionsetNamespacePrefix in class org.apache.jackrabbit.commons.AbstractSessionRepositoryExceptionSession.setNamespacePrefix(String, String)public void logout()
logout in interface Sessionlogout in class org.apache.jackrabbit.commons.AbstractSessionSession.logout()public boolean isLive()
isLive in interface SessionSession.isLive()public void addLockToken(String lt)
addLockToken in interface SessionSession.addLockToken(String)public String[] getLockTokens()
getLockTokens in interface SessionSession.getLockTokens()public void removeLockToken(String lt)
removeLockToken in interface SessionSession.removeLockToken(String)
public AccessControlManager getAccessControlManager()
throws RepositoryException
getAccessControlManager in interface SessionRepositoryExceptionSession.getAccessControlManager()
public Node getNode(String absPath)
throws RepositoryException
getNode in interface SessiongetNode in class org.apache.jackrabbit.commons.AbstractSessionRepositoryExceptionSession.getNode(String)
public Node getNodeByIdentifier(String id)
throws RepositoryException
getNodeByIdentifier in interface SessionRepositoryExceptionSession.getNodeByIdentifier(String)
public Property getProperty(String absPath)
throws RepositoryException
getProperty in interface SessiongetProperty in class org.apache.jackrabbit.commons.AbstractSessionRepositoryExceptionSession.getProperty(String)
public RetentionManager getRetentionManager()
throws UnsupportedRepositoryOperationException,
RepositoryException
getRetentionManager in interface SessionUnsupportedRepositoryOperationException
RepositoryExceptionSession.getRetentionManager()
public boolean hasCapability(String methodName,
Object target,
Object[] arguments)
throws RepositoryException
hasCapability in interface SessionRepositoryExceptionSession.hasCapability(String, Object, Object[])
public boolean hasPermission(String absPath,
String actions)
throws RepositoryException
hasPermission in interface SessionRepositoryExceptionSession.hasPermission(String, String)
public boolean nodeExists(String absPath)
throws RepositoryException
nodeExists in interface SessionnodeExists in class org.apache.jackrabbit.commons.AbstractSessionRepositoryExceptionSession.nodeExists(String)
public boolean propertyExists(String absPath)
throws RepositoryException
propertyExists in interface SessionpropertyExists in class org.apache.jackrabbit.commons.AbstractSessionRepositoryExceptionSession.propertyExists(String)
public void removeItem(String absPath)
throws RepositoryException
removeItem in interface SessionremoveItem in class org.apache.jackrabbit.commons.AbstractSessionRepositoryExceptionSession.removeItem(String)
public String getPrefix(String uri)
throws NamespaceException
getPrefix in interface org.apache.jackrabbit.spi.commons.namespace.NamespaceResolverNamespaceExceptionNamespaceResolver.getPrefix(String)
public String getURI(String prefix)
throws NamespaceException
getURI in interface org.apache.jackrabbit.spi.commons.namespace.NamespaceResolverNamespaceExceptionNamespaceResolver.getURI(String)public void addListener(SessionListener listener)
SessionListener
listener - the new listener to be informed on modificationspublic void removeListener(SessionListener listener)
SessionListener
listener - an existing listener
protected WorkspaceImpl createWorkspaceInstance(RepositoryConfig config,
org.apache.jackrabbit.spi.SessionInfo sessionInfo)
throws RepositoryException
RepositoryException
protected SessionItemStateManager createSessionItemStateManager(UpdatableItemStateManager workspaceStateManager,
ItemStateFactory isf)
throws RepositoryException
RepositoryExceptionprotected ItemManager createItemManager(HierarchyManager hierarchyManager)
public org.apache.jackrabbit.spi.commons.conversion.NamePathResolver getNamePathResolver()
getNamePathResolver in interface ManagerProviderManagerProvider.getNamePathResolver()public org.apache.jackrabbit.spi.commons.conversion.NameResolver getNameResolver()
getNameResolver in interface ManagerProviderManagerProvider.getNameResolver()public org.apache.jackrabbit.spi.commons.conversion.PathResolver getPathResolver()
getPathResolver in interface ManagerProviderManagerProvider.getPathResolver()public org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver getNamespaceResolver()
getNamespaceResolver in interface ManagerProviderManagerProvider.getNamespaceResolver()public HierarchyManager getHierarchyManager()
getHierarchyManager in interface ManagerProviderManagerProvider.getHierarchyManager()public LockStateManager getLockStateManager()
ManagerProviderLockStateManager associated with this
ManagerProvider.
getLockStateManager in interface ManagerProviderLockStateManager associated with this
ManagerProviderManagerProvider.getLockStateManager()public AccessManager getAccessManager()
getAccessManager in interface ManagerProviderManagerProvider.getAccessManager()public VersionManager getVersionStateManager()
ManagerProviderVersionManager associated with this
ManagerProvider.
getVersionStateManager in interface ManagerProviderVersionManager associated with this
ManagerProviderManagerProvider.getVersionStateManager()public ItemDefinitionProvider getItemDefinitionProvider()
getItemDefinitionProvider in interface ManagerProviderManagerProvider.getItemDefinitionProvider()public NodeTypeDefinitionProvider getNodeTypeDefinitionProvider()
getNodeTypeDefinitionProvider in interface ManagerProviderManagerProvider.getNodeTypeDefinitionProvider()public EffectiveNodeTypeProvider getEffectiveNodeTypeProvider()
getEffectiveNodeTypeProvider in interface ManagerProviderManagerProvider.getEffectiveNodeTypeProvider()
public org.apache.jackrabbit.spi.QValueFactory getQValueFactory()
throws RepositoryException
getQValueFactory in interface ManagerProviderRepositoryExceptionManagerProvider.getQValueFactory()
public ValueFactory getJcrValueFactory()
throws RepositoryException
ManagerProviderSession.getValueFactory() but omits the check, if this repository
is really level 2 compliant. Therefore, this method may be used for
internal functionality only, that require creation and conversion of
JCR values.
getJcrValueFactory in interface ManagerProviderRepositoryExceptionManagerProvider.getJcrValueFactory()public ItemStateValidator getValidator()
public org.apache.jackrabbit.spi.IdFactory getIdFactory()
throws RepositoryException
RepositoryException
public org.apache.jackrabbit.spi.NameFactory getNameFactory()
throws RepositoryException
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||