Esri Geoportal Server
1.0

com.esri.gpt.control.view
Class SelectablePublishers

java.lang.Object
  extended by com.esri.gpt.control.view.SelectablePublishers

public class SelectablePublishers
extends Object

Defines a list of publishers selectable from the user interface.


Constructor Summary
SelectablePublishers()
          Default constructor.
 
Method Summary
 void build(RequestContext context, boolean forManagement)
          Builds the list of selectable publishers.
 boolean getHasMultiple()
          Determines if the items list contains multiple publishers.
 ArrayList<SelectItem> getItems()
          Gets the SelectItem list for UI display.
 String getSelectedKey()
          Gets the currently selected key.
 Publisher selectedAsPublisher(RequestContext context, boolean forManagement)
          Creates a published from the key (DN) selected within the user interface.
 void setSelectedKey(String key)
          Sets the currently selected key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectablePublishers

public SelectablePublishers()
Default constructor.

Method Detail

getHasMultiple

public boolean getHasMultiple()
Determines if the items list contains multiple publishers.

Returns:
true if the items list is greater that 1

getItems

public ArrayList<SelectItem> getItems()
Gets the SelectItem list for UI display.

Returns:
the SelectItem list

getSelectedKey

public String getSelectedKey()
Gets the currently selected key.

Returns:
the currently selected key

setSelectedKey

public void setSelectedKey(String key)
Sets the currently selected key.

Parameters:
key - the currently selected key

build

public void build(RequestContext context,
                  boolean forManagement)
Builds the list of selectable publishers.

Parameters:
context - the active request context
forManagement - true for management

selectedAsPublisher

public Publisher selectedAsPublisher(RequestContext context,
                                     boolean forManagement)
                              throws NotAuthorizedException,
                                     IdentityException,
                                     ImsServiceException,
                                     SQLException,
                                     CredentialsDeniedException
Creates a published from the key (DN) selected within the user interface.

Parameters:
context - the current request context (contains the active user)
forManagement - true if the request is in support of the metadata management page
Returns:
a publisher associated with the selected key (DN)
Throws:
CredentialsDeniedException - if the selected DN is invalid
NotAuthorizedException - if the new publisher not have publishing rights
IdentityException - if an integrity violation occurs
ImsServiceException - if an exception occurs when creating the default folder
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.