Esri Geoportal Server
1.0

com.esri.gpt.catalog.arcims
Class ImsPermissionDao

java.lang.Object
  extended by com.esri.gpt.framework.sql.BaseDao
      extended by com.esri.gpt.catalog.arcims.ImsPermissionDao

public class ImsPermissionDao
extends BaseDao

Database access object associated with ArcIMS service permissions.


Field Summary
static String ROLE_ADMINISTRATOR
          Administrator role - "metadata_administrator"
static String ROLE_BROWSER
          Browser role - "metadata_browser"
static String ROLE_BROWSER_ALL
          Browse all role - "metadata_browser_all"
static String ROLE_PUBLISHER
          Publisher role - "metadata_publisher"
 
Constructor Summary
protected ImsPermissionDao()
          Default constructor.
  ImsPermissionDao(RequestContext requestContext)
          Constructs with an associated request context.
 
Method Summary
 void preparePublisher(Publisher publisher, boolean ensureDefaultFolder)
          Prepares a publisher prior to submitting a request to an ArcIMS metadata service request.
 
Methods inherited from class com.esri.gpt.framework.sql.BaseDao
appendExpression, appendValueFilter, closeResultSet, closeStatement, getApplicationConfiguration, getRequestContext, logExpression, returnConnection, setRequestContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE_ADMINISTRATOR

public static final String ROLE_ADMINISTRATOR
Administrator role - "metadata_administrator"

See Also:
Constant Field Values

ROLE_BROWSER

public static final String ROLE_BROWSER
Browser role - "metadata_browser"

See Also:
Constant Field Values

ROLE_BROWSER_ALL

public static final String ROLE_BROWSER_ALL
Browse all role - "metadata_browser_all"

See Also:
Constant Field Values

ROLE_PUBLISHER

public static final String ROLE_PUBLISHER
Publisher role - "metadata_publisher"

See Also:
Constant Field Values
Constructor Detail

ImsPermissionDao

protected ImsPermissionDao()
Default constructor.


ImsPermissionDao

public ImsPermissionDao(RequestContext requestContext)
Constructs with an associated request context.

Parameters:
requestContext - the request context
Method Detail

preparePublisher

public void preparePublisher(Publisher publisher,
                             boolean ensureDefaultFolder)
                      throws IdentityException,
                             SQLException
Prepares a publisher prior to submitting a request to an ArcIMS metadata service request.
Authentication/authorization does not occur in this step.
It is assumed that any authentication/authorization has occurred prior the execution of this method.

Parameters:
publisher - the subject publisher
ensureDefaultFolder - if true also ensure that a folder exists for the publisher
Throws:
IdentityException - if an integrity violation occurs
SQLException - if a database exception occurs

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.