Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Uses of Interface
java.nio.file.attribute.UserPrincipal

Packages that use UserPrincipal
Package Description
java.nio.file.attribute Interfaces and classes providing access to file and file system attributes. 
 

Uses of UserPrincipal in java.nio.file.attribute
 

Subinterfaces of UserPrincipal in java.nio.file.attribute
Modifier and Type Interface and Description
 interface GroupPrincipal
          A UserPrincipal representing a group identity, used to determine access rights to objects in a file system.
 

Methods in java.nio.file.attribute that return UserPrincipal
Modifier and Type Method and Description
 UserPrincipal FileOwnerAttributeView.getOwner()
          Read the file owner.
static UserPrincipal Attributes.getOwner(FileRef file)
          Returns the owner of a file.
abstract  UserPrincipal UserPrincipalLookupService.lookupPrincipalByName(String name)
          Lookup a user principal by name.
 UserPrincipal PosixFileAttributes.owner()
          Returns the owner of the file.
 UserPrincipal AclEntry.principal()
          Returns the principal component.
 

Methods in java.nio.file.attribute with parameters of type UserPrincipal
Modifier and Type Method and Description
static void Attributes.setOwner(FileRef file, UserPrincipal owner)
          Updates the file owner.
 void FileOwnerAttributeView.setOwner(UserPrincipal owner)
          Updates the file owner.
 AclEntry.Builder AclEntry.Builder.setPrincipal(UserPrincipal who)
          Sets the principal component of this builder.
 


Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.