| 
Esri Geoportal Server 1.0 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.framework.security.metadata.MetadataAcl
public class MetadataAcl
This class is used to metadata build access control lists.
| Constructor Summary | |
|---|---|
MetadataAcl(RequestContext context)
Constructor.  | 
|
| Method Summary | |
|---|---|
 String | 
buildAclGroups(Groups groups,
               ArrayList<String> pickedGroups)
Build list of selected groups  | 
 boolean | 
hasReadAccess(User user,
              String uuid)
Indicates if the user has read access for the document with given UUID.  | 
 boolean | 
isPolicyUnrestricted()
Indicates if the application metadata access policy is unrestricted.  | 
 String[] | 
makeDocumentAcl(String xml)
Builds array of acl strings  | 
 String | 
makeGroupsfromXml(Groups groups,
                  String xml)
Returns groups from acl xml string  | 
 String | 
makeGroupsKeysfromXml(Groups groups,
                      String xml)
Makes group keys from XML string.  | 
 String[] | 
makeUserAcl()
Builds array of acl strings  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MetadataAcl(RequestContext context)
context - the active request context| Method Detail | 
|---|
public String buildAclGroups(Groups groups,
                             ArrayList<String> pickedGroups)
groups - groupspickedGroups - picked groups
public boolean hasReadAccess(User user,
                             String uuid)
                      throws SQLException,
                             ParserConfigurationException,
                             SAXException,
                             IOException
user - the application useruuid - the document uuid
IOException
SAXException
ParserConfigurationException
SQLExceptionpublic boolean isPolicyUnrestricted()
public String[] makeDocumentAcl(String xml)
                         throws ParserConfigurationException,
                                SAXException,
                                IOException
xml - xml string
IOException
SAXException
ParserConfigurationException
public String makeGroupsfromXml(Groups groups,
                                String xml)
                         throws ParserConfigurationException,
                                SAXException,
                                IOException
groups - groupxml - xml
IOException
SAXException
ParserConfigurationException
public String makeGroupsKeysfromXml(Groups groups,
                                    String xml)
                             throws ParserConfigurationException,
                                    SAXException,
                                    IOException
groups - groupsxml - XML string
ParserConfigurationException
SAXException
IOExceptionpublic String[] makeUserAcl()
SQLException
NamingException
IdentityException
  | 
Esri Geoportal Server 1.0 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||