org.apache.jetspeed.security
Interface SecurityAttributes


public interface SecurityAttributes

Version:
$Id$

Method Summary
 SecurityAttribute getAttribute(java.lang.String name)
           
 SecurityAttribute getAttribute(java.lang.String name, boolean create)
          Returns an existing (predefined typed) attribute or create one if parameter create is true.
 java.util.Map<java.lang.String,SecurityAttribute> getAttributeMap()
           
 java.util.Map<java.lang.String,SecurityAttribute> getAttributeMap(java.lang.String category)
           
 java.util.Set<java.lang.String> getAttributeNames()
           
 java.util.Set<java.lang.String> getAttributeNames(java.lang.String category)
           
 java.util.Map<java.lang.String,SecurityAttribute> getInfoAttributeMap()
           
 java.util.Map<java.lang.String,java.lang.String> getInfoMap()
           
 JetspeedPrincipal getPrincipal()
           
 SecurityAttributeTypes getSecurityAttributeTypes()
           
 boolean isDefinedAttribute(java.lang.String name)
           
 boolean isExtendable()
           
 boolean isReadOnly()
           
 void removeAttribute(java.lang.String name)
           
 int size()
           
 

Method Detail

getPrincipal

JetspeedPrincipal getPrincipal()

size

int size()

isReadOnly

boolean isReadOnly()

isExtendable

boolean isExtendable()

getSecurityAttributeTypes

SecurityAttributeTypes getSecurityAttributeTypes()

isDefinedAttribute

boolean isDefinedAttribute(java.lang.String name)

getAttributeNames

java.util.Set<java.lang.String> getAttributeNames()

getAttributeNames

java.util.Set<java.lang.String> getAttributeNames(java.lang.String category)

getAttributeMap

java.util.Map<java.lang.String,SecurityAttribute> getAttributeMap()

getAttributeMap

java.util.Map<java.lang.String,SecurityAttribute> getAttributeMap(java.lang.String category)

getInfoAttributeMap

java.util.Map<java.lang.String,SecurityAttribute> getInfoAttributeMap()

getInfoMap

java.util.Map<java.lang.String,java.lang.String> getInfoMap()
Returns:
an unmodifiable Map of the SecurityAttributes.INFO_CATEGORY SecurityAttributes

getAttribute

SecurityAttribute getAttribute(java.lang.String name)

getAttribute

SecurityAttribute getAttribute(java.lang.String name,
                               boolean create)
                               throws SecurityException
Returns an existing (predefined typed) attribute or create one if parameter create is true. If parameter create is true and it doesn't exist yet it will be created (based upon its SecurityAttributeType) first, but only if the SecurityAttributes itself isn't readOnly (then a AttributesReadOnlyException will be thrown). If parameter create is false and it doesn't exist yet a NULL value will be returned. If there is no SecurityAttributeType defined for the attribute (name), a new attribute with INFO_CATEGORY will be created.

Parameters:
name - name of a predefined SecurityAttributeType (for this JetspeedPrincipal type)
create - add the attribute when it doesn't exist yet
Returns:
an existing attribute or one created on the fly (if parameter create is true)
Throws:
SecurityException

removeAttribute

void removeAttribute(java.lang.String name)
                     throws SecurityException
Throws:
SecurityException


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.