public final class OwncloudUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.http.MediaType |
getDirectoryMediaType()
Get the MediaType of a Directory (
httpd/unix-directory) |
static boolean |
isAuthenticationClassNotSupported(Class<?> authenticationClass)
Checks, if the given Authentication Class is expected invalid
to be used by the Owncloud AuthenticationProvider Implementations.
|
static boolean |
isAuthenticationClassSupported(Class<?> authenticationClass)
Checks, if the given Authentication Class is expected valid
to be used by the Owncloud AuthenticationProvider Implementations.
|
static boolean |
isDirectory(OwncloudResource owncloudResource)
Checks, if the OwncloudResource is a Directory
|
static boolean |
isInvalidAuthentication(org.springframework.security.core.Authentication authentication)
Checks, if the given Authentication Object is NOT authenticated
by the Owncloud{Rest|Local}AuthenticationProvider
|
static boolean |
isNotDirectory(OwncloudResource owncloudResource)
Checks, if the OwncloudResource is not a Directory
|
static boolean |
isValidAuthentication(org.springframework.security.core.Authentication authentication)
Checks, if the given Authentication Object is authenticated
by the Owncloud{Rest|Local}AuthenticationProvider
|
static OwncloudFileResource |
toOwncloudFileResource(OwncloudResource owncloudResource)
Convert a OwncloudResource to a OwncloudFileResource.
|
public static boolean isAuthenticationClassSupported(Class<?> authenticationClass)
authenticationClass - Class of the Authentication Objectpublic static boolean isAuthenticationClassNotSupported(Class<?> authenticationClass)
authenticationClass - Class of the Authentication Objectpublic static boolean isValidAuthentication(org.springframework.security.core.Authentication authentication)
authentication - Authentication Objectpublic static boolean isInvalidAuthentication(org.springframework.security.core.Authentication authentication)
authentication - Authentication Objectpublic static OwncloudFileResource toOwncloudFileResource(OwncloudResource owncloudResource) throws OwncloudNoFileResourceException
owncloudResource - OwncloudResourceOwncloudNoFileResourceException - if the OwncloudResource is not convertable to a OwncloudFileResourcepublic static boolean isDirectory(OwncloudResource owncloudResource)
owncloudResource - OwncloudResourcepublic static boolean isNotDirectory(OwncloudResource owncloudResource)
owncloudResource - OwncloudResourcepublic static org.springframework.http.MediaType getDirectoryMediaType()
httpd/unix-directory)Copyright © 2016–2020 coolstuff.software. All rights reserved.