public class FileLibraryUtils
extends java.lang.Object
Constructor and Description |
---|
FileLibraryUtils() |
Modifier and Type | Method and Description |
---|---|
static Resource |
getParent(Resource resource,
boolean forceLibrary)
Find the parent resource for the specified resource.
|
static UserProperties |
getUserProperties(ResourceResolver resolver,
java.lang.String userId)
Returns the user properties denoted by the given
userId . |
public static Resource getParent(Resource resource, boolean forceLibrary)
resource
- the specified resource.forceLibrary
- true
to return the parent topicpublic static UserProperties getUserProperties(ResourceResolver resolver, java.lang.String userId)
userId
. The user props are looked for using the
provided resource resolver, so as to ensure that the user properties are only accessible to users having the
necessary access rights on the requested user properties.resolver
- The ResourceResolver
.userId
- The user id for which to retrieve the user properties.UserProperties
or null
if not found.Copyright © 2010 - 2020 Adobe. All Rights Reserved