File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class UserPrincipalLookupService

 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class UserPrincipalLookupService
1.abstract GroupPrincipal lookupPrincipalByGroupName(String group)
Lookup a group principal by group name.

2.abstract UserPrincipal lookupPrincipalByName(String name)
Lookup a user principal by name.

I've implemented second method lookupPrincipalByName() method through Files.get/setOwner() methods, and that means we are getting and setting file owner name but please explain me what is group name in context of a file ,what is use of that ?

Thanks.
http://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/UserPrincipalLookupService.html
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic