org.equanda.auth
Class MapAuthAndConfigProvider

java.lang.Object
  extended by org.equanda.auth.AuthAndConfigProviderAdapter
      extended by org.equanda.auth.MapAuthAndConfigProvider
All Implemented Interfaces:
MutableAuthAndConfigProvider, AuthAndConfigProvider
Direct Known Subclasses:
ParsedAuthAndConfigProvider

public class MapAuthAndConfigProvider
extends AuthAndConfigProviderAdapter
implements MutableAuthAndConfigProvider

AuthAndConfigProvider implementation which use a map as storage.

Author:
Joachim Van der Auwera

Constructor Summary
MapAuthAndConfigProvider()
           
 
Method Summary
 Set<String> getKeys()
           
 void put(String key, AuthAndConfig value)
           
 void remove(String key)
           
 void setDelete(String key)
          Set the key to allow delete
 void setDisplayList(String key)
          Set the key to allow list
 void setDisplayPrint(String key)
          Set the key to allow print
 void setDisplaySummary(String key)
          Set the key to allow summary
 void setHidden(String key)
          Set hidden
 void setReadable(String key)
          Set the key readable/viewable?
 void setWritable(String key)
          Set the key writable/editable?
 
Methods inherited from class org.equanda.auth.AuthAndConfigProviderAdapter
hasKey, isDeletable, isDisplayList, isDisplayPrint, isDisplaySummary, isReadable, isWritable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.equanda.client.AuthAndConfigProvider
hasKey, isDeletable, isDisplayList, isDisplayPrint, isDisplaySummary, isReadable, isWritable
 

Constructor Detail

MapAuthAndConfigProvider

public MapAuthAndConfigProvider()
Method Detail

put

public void put(String key,
                AuthAndConfig value)

remove

public void remove(String key)

getKeys

public Set<String> getKeys()

setReadable

public void setReadable(String key)
Description copied from interface: MutableAuthAndConfigProvider
Set the key readable/viewable?

Specified by:
setReadable in interface MutableAuthAndConfigProvider
Parameters:
key - key to set authorization for

setWritable

public void setWritable(String key)
Description copied from interface: MutableAuthAndConfigProvider
Set the key writable/editable?

Specified by:
setWritable in interface MutableAuthAndConfigProvider
Parameters:
key - key to set authorization for

setDelete

public void setDelete(String key)
Description copied from interface: MutableAuthAndConfigProvider
Set the key to allow delete

Specified by:
setDelete in interface MutableAuthAndConfigProvider
Parameters:
key - key to set authorization for

setDisplayList

public void setDisplayList(String key)
Description copied from interface: MutableAuthAndConfigProvider
Set the key to allow list

Specified by:
setDisplayList in interface MutableAuthAndConfigProvider
Parameters:
key - key to set authorization for

setDisplaySummary

public void setDisplaySummary(String key)
Description copied from interface: MutableAuthAndConfigProvider
Set the key to allow summary

Specified by:
setDisplaySummary in interface MutableAuthAndConfigProvider
Parameters:
key - key to set authorization for

setDisplayPrint

public void setDisplayPrint(String key)
Description copied from interface: MutableAuthAndConfigProvider
Set the key to allow print

Specified by:
setDisplayPrint in interface MutableAuthAndConfigProvider
Parameters:
key - key to set authorization for

setHidden

public void setHidden(String key)
Description copied from interface: MutableAuthAndConfigProvider
Set hidden

Specified by:
setHidden in interface MutableAuthAndConfigProvider
Parameters:
key - key to set authorization for


Copyright © 2007-2009. All Rights Reserved.