jQuery in Action, 3rd edition
The moose likes I/O and Streams and the fly likes Class UserPrincipalLookupService Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Class UserPrincipalLookupService" Watch "Class UserPrincipalLookupService" New topic

Class UserPrincipalLookupService

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

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 ?


My one regret in life is that I am not someone else.
- Woody Allen
I agree. Here's the link: http://aspose.com/file-tools
subject: Class UserPrincipalLookupService
It's not a secret anymore!