|
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.principal.SecurityPrincipal
com.esri.gpt.framework.security.principal.User
com.esri.gpt.framework.security.principal.Publisher
public class Publisher
Represents a user with a metadata publishing role.
| Constructor Summary | |
|---|---|
protected |
Publisher()
Default constructor. |
|
Publisher(RequestContext context)
Constructs a publisher based upon the user associated with the current request context. |
|
Publisher(RequestContext context,
String userDN)
Constructs a publisher based upon the user associated with the current request context and a distinguished name on behalf of which a document will be published. |
| Method Summary | |
|---|---|
static Groups |
buildSelectableGroups(RequestContext context)
Builds a collection of groups that can be selected by the current user to set access policy |
static Users |
buildSelectablePublishers(RequestContext context,
boolean forManagement)
Builds a collection of publishers (users) that can be selected by the current user. |
String |
getDefaultFolderName()
Gets the default folder name for this publisher. |
String |
getFolderUuid()
Gets the folder uuid for this publisher. |
boolean |
getIsAdministrator()
Gets the status indicating whether this publisher is an administrator. |
boolean |
getIsRemote()
Gets the status indicating whether this publisher exists within a remote identity store. |
static Publisher |
makeSystemAdministrator(RequestContext context)
Creates a catalog administrator based upon the distinguished name credential supplied within the GPT configuration file (@catalogAdminDN). |
void |
setFolderUuid(String folderUuid)
Sets the folder uuid for this publisher. |
| Methods inherited from class com.esri.gpt.framework.security.principal.User |
|---|
getAuthenticationStatus, getCredentials, getGroups, getName, getProfile, reset, setAuthenticationStatus, setCredentials, setGroups, setProfile |
| Methods inherited from class com.esri.gpt.framework.security.principal.SecurityPrincipal |
|---|
getDistinguishedName, getKey, getLocalID, setDistinguishedName, setKey, setLocalID, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Publisher()
public Publisher(RequestContext context)
throws NotAuthorizedException,
IdentityException,
ImsServiceException,
SQLException
context - the current request context (contains the active user)
NotAuthorizedException - if the user does 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
public Publisher(RequestContext context,
String userDN)
throws CredentialsDeniedException,
NotAuthorizedException,
IdentityException,
ImsServiceException,
SQLException
context - the current request context (contains the active user)userDN - the DN associated with on behalf of which a document will be published.
CredentialsDeniedException - if the supplied DN is invalid
NotAuthorizedException - if the user does 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| Method Detail |
|---|
public String getDefaultFolderName()
public String getFolderUuid()
public void setFolderUuid(String folderUuid)
folderUuid - the folder uuidpublic boolean getIsAdministrator()
public boolean getIsRemote()
public static Groups buildSelectableGroups(RequestContext context)
context - the current request context (contains the active user)
public static Users buildSelectablePublishers(RequestContext context,
boolean forManagement)
context - the current request context (contains the active user)forManagement - true if the list to build is in support of the metadata management page
public static Publisher makeSystemAdministrator(RequestContext context)
throws CredentialsDeniedException,
IdentityException,
SQLException,
NotAuthorizedException,
ImsServiceException
context - the current request context
CredentialsDeniedException - if the configured administrative credentials were invalid
NotAuthorizedException - if the associated user does not have administrative 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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||