|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Set<Role>>
info.informatica.ui.ViewSecurityMap
public class ViewSecurityMap
A simple Map-based ViewSecurity implementation.
Maps supported operations to sets of allowed roles. If a Set is empty, all roles are allowed.
| Constructor Summary | |
|---|---|
ViewSecurityMap(String name)
|
|
| Method Summary | |
|---|---|
void |
addOperationPermission(String opname,
String role)
Allow a role to perform an operation. |
Set<Role> |
getAllowedRoles(String opname)
Gets the set of roles allowed to perform the given operation through the form. |
String |
getName()
Gets the name of the data view to which this security settings apply. |
String |
getXMLNamespaceURI()
Gets the XML Namespace URI of this document. |
void |
printXML(PrintWriter pw)
Prints the XML representation of this object, without including the XML declaration. |
void |
printXML(PrintWriter pw,
int indentbase,
int indentdelta)
Prints the XML representation of this object, without including the XML declaration. |
void |
resetPermissions(String opname)
Reset all permissions to perform an operation. |
String |
toString()
|
String |
toXML()
Gives a representation of this object as an XML document. |
| Methods inherited from class java.util.LinkedHashMap |
|---|
clear, containsValue, get |
| Methods inherited from class java.util.HashMap |
|---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Constructor Detail |
|---|
public ViewSecurityMap(String name)
| Method Detail |
|---|
public String getName()
ViewSecurity
getName in interface ViewSecurity
public void addOperationPermission(String opname,
String role)
ViewSecurity
addOperationPermission in interface ViewSecurityopname - name of the operation.role - the role allowed to perform the
operation through this view.public void resetPermissions(String opname)
ViewSecurity
resetPermissions in interface ViewSecurityopname - name of the operation.public Set<Role> getAllowedRoles(String opname)
getAllowedRoles in interface ViewSecuritypublic String toString()
toString in class AbstractMap<String,Set<Role>>public String getXMLNamespaceURI()
getXMLNamespaceURI in interface info.informatica.doc.xml.XMLPrintable
public void printXML(PrintWriter pw,
int indentbase,
int indentdelta)
printXML in interface info.informatica.doc.xml.XMLPrintablepw - the PrintWriter to write to.indentbase - the number of spaces to start indenting.indentdelta - the number of white spaces to add to
indenting when printing a nested element.public void printXML(PrintWriter pw)
printXML in interface info.informatica.doc.xml.XMLPrintablepw - the PrintWriter to write to.public String toXML()
toXML in interface info.informatica.doc.xml.XMLPrintable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||