org.openregistry.core.web.resources.config
Class DefaultLockExtractor

java.lang.Object
  extended by org.openregistry.core.web.resources.config.DefaultLockExtractor
All Implemented Interfaces:
LockExtractor

public final class DefaultLockExtractor
extends java.lang.Object
implements LockExtractor

Extracts the Principal name from the Principal.

Since:
0.1
Version:
$Revision$ $Date$

Constructor Summary
DefaultLockExtractor()
           
 
Method Summary
 java.lang.String extract(java.security.Principal principal, java.lang.String lockValue)
          Extracts the lock from either the principal or the lock value provided (or some other method, combining the two).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLockExtractor

public DefaultLockExtractor()
Method Detail

extract

public java.lang.String extract(java.security.Principal principal,
                                java.lang.String lockValue)
Description copied from interface: LockExtractor
Extracts the lock from either the principal or the lock value provided (or some other method, combining the two).

Specified by:
extract in interface LockExtractor
Parameters:
principal - the principal to extract the lock from.
lockValue - the potential value of the lock.
Returns:
the lock. CANNOT be NULL.


Copyright © 2009-2012 JA-SIG, Inc.. All Rights Reserved.