Package com.google.common.jimfs
Class UserLookupService
- java.lang.Object
-
- java.nio.file.attribute.UserPrincipalLookupService
-
- com.google.common.jimfs.UserLookupService
-
final class UserLookupService extends java.nio.file.attribute.UserPrincipalLookupService
UserPrincipalLookupService
implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
UserLookupService.JimfsGroupPrincipal
GroupPrincipal
implementation.(package private) static class
UserLookupService.JimfsUserPrincipal
UserPrincipal
implementation.private static class
UserLookupService.NamedPrincipal
Base class forUserPrincipal
andGroupPrincipal
implementations.
-
Field Summary
Fields Modifier and Type Field Description private boolean
supportsGroups
-
Constructor Summary
Constructors Constructor Description UserLookupService(boolean supportsGroups)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static java.nio.file.attribute.GroupPrincipal
createGroupPrincipal(java.lang.String name)
Creates aGroupPrincipal
for the given group name.(package private) static java.nio.file.attribute.UserPrincipal
createUserPrincipal(java.lang.String name)
Creates aUserPrincipal
for the given user name.java.nio.file.attribute.GroupPrincipal
lookupPrincipalByGroupName(java.lang.String group)
java.nio.file.attribute.UserPrincipal
lookupPrincipalByName(java.lang.String name)
-
-
-
Method Detail
-
lookupPrincipalByName
public java.nio.file.attribute.UserPrincipal lookupPrincipalByName(java.lang.String name)
- Specified by:
lookupPrincipalByName
in classjava.nio.file.attribute.UserPrincipalLookupService
-
lookupPrincipalByGroupName
public java.nio.file.attribute.GroupPrincipal lookupPrincipalByGroupName(java.lang.String group) throws java.io.IOException
- Specified by:
lookupPrincipalByGroupName
in classjava.nio.file.attribute.UserPrincipalLookupService
- Throws:
java.io.IOException
-
createUserPrincipal
static java.nio.file.attribute.UserPrincipal createUserPrincipal(java.lang.String name)
Creates aUserPrincipal
for the given user name.
-
createGroupPrincipal
static java.nio.file.attribute.GroupPrincipal createGroupPrincipal(java.lang.String name)
Creates aGroupPrincipal
for the given group name.
-
-