Skip navigation links
A C D G I J L M N O P R S U 

A

AbstractSlingRepository2 - Class in org.apache.sling.jcr.base
The AbstractSlingRepository2 is an abstract implementation of the SlingRepository version 2.3 interface (phasing AbstractSlingRepository2.loginAdministrative(String) out in favor of AbstractSlingRepository2.loginService(String, String)) which provides default support for attached repositories.
AbstractSlingRepository2(AbstractSlingRepositoryManager, Bundle) - Constructor for class org.apache.sling.jcr.base.AbstractSlingRepository2
Sets up this abstract SlingRepository implementation.
AbstractSlingRepositoryManager - Class in org.apache.sling.jcr.base
The AbstractSlingRepositoryManager is the basis for controlling the JCR repository instances used by Sling.
AbstractSlingRepositoryManager() - Constructor for class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
 
AbstractSlingRepositoryManager.Config - Class in org.apache.sling.jcr.base
Configuration pojo to be passed to the AbstractSlingRepositoryManager.start(BundleContext, Config) method.
AccessControlUtil - Class in org.apache.sling.jcr.base.util
A simple utility class providing utilities with respect to access control over repositories.
AccessControlUtil() - Constructor for class org.apache.sling.jcr.base.util.AccessControlUtil
 
acquireRepository() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Creates the backing JCR repository instances.
addEntry(AccessControlList, Principal, Privilege[], boolean) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Same as AccessControlUtil.addEntry(AccessControlList, Principal, Privilege[], boolean, Map) using some implementation specific restrictions.
addEntry(AccessControlList, Principal, Privilege[], boolean, Map) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Adds an access control entry to the acl consisting of the specified principal, the specified privileges, the isAllow flag and an optional map containing additional restrictions.
addEntry(AccessControlList, Principal, Privilege[], boolean, Map<String, Value>, Map<String, Value[]>) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Adds an access control entry to the acl consisting of the specified principal, the specified privileges, the isAllow flag and an optional map containing additional restrictions.
allowLoginAdministrativeForBundle(Bundle) - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Returns whether or not the provided bundle is allowed to use SlingRepository.loginAdministrative(String).

C

Config(String, boolean) - Constructor for class org.apache.sling.jcr.base.AbstractSlingRepositoryManager.Config
 
create(Bundle) - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Creates an instance of the AbstractSlingRepository2 implementation for use by the given usingBundle.
createAdministrativeSession(String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Creates an administrative session to access the indicated workspace.
createServiceSession(String, String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Creates a service-session for the service's serviceUserName by impersonating the user from an administrative session.
createServiceSession(Iterable<String>, String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Creates a service-session for the service's servicePrincipalNames using a pre-authenticated Subject.

D

defaultWorkspace - Variable in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager.Config
 
destroy(AbstractSlingRepository2) - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Cleans up the given AbstractSlingRepository2 instance previously created by the AbstractSlingRepositoryManager.create(Bundle) method.
disableLoginAdministrative - Variable in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager.Config
 
disposeRepository(Repository) - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Disposes off the given repository.

G

getAccessControlManager(Session) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Returns the AccessControlManager for the given session.
getClientRepositoryFactory() - Method in class org.apache.sling.jcr.base.util.RepositoryAccessor
Returns the ClientRepositoryFactory to access the remote JCR repository over RMI.
getDefaultWorkspace() - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Returns the default workspace to login to if any of the login and createSession methods is called without an explicit workspace name.
getDefaultWorkspace() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Returns the default workspace, which may be null meaning to use the repository provided default workspace.
getDescriptor(String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
 
getDescriptorKeys() - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
 
getDescriptorValue(String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
 
getDescriptorValues(String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
 
getLocalAdapterFactory() - Method in class org.apache.sling.jcr.base.util.RepositoryAccessor
Returns the LocalAdapterFactory used to convert Jackrabbit JCR RMI remote objects to local JCR API objects.
getPath(AccessControlList) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Returns the path of the node AccessControlList acl has been created for.
getPrincipalManager(Session) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Returns the PrincipalManager for the given session.
getRepository() - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Returns the actual repository to which all JCR Repository interface methods implemented by this class are delegated.
getRepository() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Returns the repository underlying this instance or null if no repository is currently being available.
getRepository(String, Hashtable<String, Object>) - Method in class org.apache.sling.jcr.base.util.RepositoryAccessor
First try to access the Repository via JNDI (unless jndiContext is null), and if not successful try RMI.
getRepositoryFromURL(String) - Method in class org.apache.sling.jcr.base.util.RepositoryAccessor
Acquire a Repository from the given URL
getServiceRegistrationInterfaces() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Returns the service types to be used to register the repository service in AbstractSlingRepositoryManager.registerService().
getServiceRegistrationProperties() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Return the service registration properties to be used to register the repository service in AbstractSlingRepositoryManager.registerService().
getServiceUserMapper() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Returns the ServiceUserMapper service to map the service name to a service user name.
getSlingRepositoryManager() - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
 
getUserManager(Session) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Returns the UserManager for the given session.

I

impersonateFromService(String, Credentials, String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Default implementation of the AbstractSlingRepository2.impersonateFromService(String, Credentials, String) method taking into account the bundle calling this method.
isAllow(AccessControlEntry) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Returns true if the AccessControlEntry represents 'allowed' rights or false it it represents 'denied' rights.
isDisableLoginAdministrative() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Returns whether to disable the SlingRepository.loginAdministrative method or not.
isEmpty(AccessControlList) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Returns true if AccessControlList acl does not yet define any entries.
isSingleValueDescriptor(String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
 
isStandardDescriptor(String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
 

J

JNDI_PREFIX - Static variable in class org.apache.sling.jcr.base.util.RepositoryAccessor
Prefix for JNDI Repository URLs

L

login() - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Same as calling login(null, null).
login(Credentials) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Same as calling login(credentials, null).
login(String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Same as calling login(null, workspace).
login(Credentials, String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Logs into the repository at the given workspace with the given credentials and returns the session returned from the repository.
loginAdministrative(String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Login as an administrative user.
loginService(String, String) - Method in class org.apache.sling.jcr.base.AbstractSlingRepository2
Actual implementation of the AbstractSlingRepository2.loginService(String, String) method taking into account the bundle calling this method.

M

MOUNT_POINTS_KEY - Static variable in interface org.apache.sling.jcr.base.spi.RepositoryMount
 

N

NodeTypeLoader - Class in org.apache.sling.jcr.base
The NodeTypeSupport contains utility methods to register node types from a CND nodetype definition file given as an URL or InputStream with the repository.
NodeTypeLoader() - Constructor for class org.apache.sling.jcr.base.NodeTypeLoader
 

O

org.apache.sling.jcr.base - package org.apache.sling.jcr.base
The org.apache.sling.jcr.base package provides basic support to expose JCR repositories in Sling.
org.apache.sling.jcr.base.spi - package org.apache.sling.jcr.base.spi
The org.apache.sling.jcr.base.spi package provides a way to bifurcate requests to subpaths to a mount provider.
org.apache.sling.jcr.base.util - package org.apache.sling.jcr.base.util
 

P

PARENT_SESSION_KEY - Static variable in interface org.apache.sling.jcr.base.spi.RepositoryMount
 

R

registerNodeType(Session, URL) - Static method in class org.apache.sling.jcr.base.NodeTypeLoader
Registers node types from the CND file accessible by the URL with the node type manager available from the given session.
registerNodeType(Session, InputStream) - Static method in class org.apache.sling.jcr.base.NodeTypeLoader
Registers node types from the CND file read from the source with the node type manager available from the given session.
registerNodeType(Session, String, Reader, boolean) - Static method in class org.apache.sling.jcr.base.NodeTypeLoader
 
registerService() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Registers this component as an OSGi service with the types provided by the AbstractSlingRepositoryManager.getServiceRegistrationInterfaces() method and properties provided by the AbstractSlingRepositoryManager.getServiceRegistrationProperties() method.
replaceAccessControlEntry(Session, String, Principal, String[], String[], String[]) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
replaceAccessControlEntry(Session, String, Principal, String[], String[], String[], String) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Replaces existing access control entries in the ACL for the specified principal and resourcePath.
replaceAccessControlEntry(Session, String, Principal, String[], String[], String[], String, Map<String, Value>, Map<String, Value[]>, Set<String>) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Replaces existing access control entries in the ACL for the specified principal and resourcePath.
REPOSITORY_URL_OVERRIDE_PROPERTY - Static variable in class org.apache.sling.jcr.base.util.RepositoryAccessor
Name of the property that the jcr client and server bundles to override their default configuration settings and connect to the specified repository instead (SLING-254 and SLING-260)
RepositoryAccessor - Class in org.apache.sling.jcr.base.util
Access a Repository via JNDI or RMI.
RepositoryAccessor() - Constructor for class org.apache.sling.jcr.base.util.RepositoryAccessor
 
RepositoryMount - Interface in org.apache.sling.jcr.base.spi
 
RMI_PREFIX - Static variable in class org.apache.sling.jcr.base.util.RepositoryAccessor
Prefix for RMI Repository URLs

S

size(AccessControlList) - Static method in class org.apache.sling.jcr.base.util.AccessControlUtil
Returns the number of acl entries or 0 if the acl is empty.
start(BundleContext, String, boolean) - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
start(BundleContext, AbstractSlingRepositoryManager.Config) - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
This method actually starts the backing repository instannce and registeres the repository service.
stop() - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
This method must be called if overwritten by implementations !!

U

unregisterService(ServiceRegistration) - Method in class org.apache.sling.jcr.base.AbstractSlingRepositoryManager
Unregisters the service represented by the serviceRegistration.
A C D G I J L M N O P R S U 
Skip navigation links

Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.