public interface EdgeEnablerAdminSession extends OsidSession
This session creates and removes edge enablers. The data for create and
update is provided via the EdgeEnablerForm.
Modifier and Type | Method and Description |
---|---|
void |
aliasEdgeEnabler(Id edgeEnablerId,
Id aliasId)
Adds an
Id to an EdgeEnabler for the
purpose of creating compatibility. |
boolean |
canCreateEdgeEnabler()
Tests if this user can create edge enablers.
|
boolean |
canCreateEdgeEnablerWithRecordTypes(Type[] edgeEnablerRecordTypes)
Tests if this user can create a single
EdgeEnabler
using the desired record types. |
boolean |
canDeleteEdgeEnablers()
Tests if this user can delete edge enablers.
|
boolean |
canManageEdgeEnablerAliases()
Tests if this user can manage
Id aliases for edge
enablers. |
boolean |
canUpdateEdgeEnablers()
Tests if this user can update edge enablers.
|
EdgeEnabler |
createEdgeEnabler(EdgeEnablerForm edgeEnablerForm)
Creates a new
EdgeEnabler. |
void |
deleteEdgeEnabler(Id edgeEnablerId)
Deletes an
EdgeEnabler. |
EdgeEnablerForm |
getEdgeEnablerFormForCreate(Type[] edgeEnablerRecordTypes)
Gets the edge enabler form for creating new edge enablers.
|
EdgeEnablerForm |
getEdgeEnablerFormForUpdate(Id edgeEnablerId)
Gets the edge enabler form for updating an existing edge enabler.
|
Graph |
getGraph()
Gets the
Graph associated with this session. |
Id |
getGraphId()
Gets the
Graph Id associated with this
session. |
void |
updateEdgeEnabler(EdgeEnablerForm edgeEnablerForm)
Updates an existing edge enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getGraphId()
Graph
Id
associated with this
session. Graph Id
associated with this sessionmandatory
- This method must be implemented. Graph getGraph() throws OperationFailedException, PermissionDeniedException
Graph
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canCreateEdgeEnabler()
EdgeEnabler
will result in a
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer create operations to an
unauthorized user. false
if EdgeEnabler
creation is
not authorized, true
otherwisemandatory
- This method must be implemented. boolean canCreateEdgeEnablerWithRecordTypes(Type[] edgeEnablerRecordTypes)
EdgeEnabler
using the desired record types. While
TopologyRulesManager.getEdgeEnablerRecordTypes()
can be used
to examine which records are supported, this method tests which
record(s) are required for creating a specific EdgeEnabler.
Providing an empty array tests if an EdgeEnabler
can be created with no records.edgeEnablerRecordTypes
- array of edge enabler types true
if EdgeEnabler
creation
using the specified record Types
is supported,
false
otherwiseNullArgumentException
- edgeEnablerRecordTypes
is null
mandatory
- This method must be implemented. EdgeEnablerForm getEdgeEnablerFormForCreate(Type[] edgeEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
edgeEnablerRecordTypes
- array of edge enabler typesNullArgumentException
- edgeEnablerRecordTypes
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- unable to get form for requested
record typesmandatory
- This method must be implemented. EdgeEnabler createEdgeEnabler(EdgeEnablerForm edgeEnablerForm) throws OperationFailedException, PermissionDeniedException
EdgeEnabler.
edgeEnablerForm
- the form for this EdgeEnabler
EdgeEnabler
IllegalStateException
- edgeEnablerForm
already used in a create transactionInvalidArgumentException
- one or more of the form
elements is invalidNullArgumentException
- edgeEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- edgeEnablerForm
did not originate from getEdgeEnablerFormForCreate()
mandatory
- This method must be implemented. boolean canUpdateEdgeEnablers()
EdgeEnabler
will result in a
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer update operations to an
unauthorized user. false
if EdgeEnabler
modification is not authorized, true
otherwisemandatory
- This method must be implemented. EdgeEnablerForm getEdgeEnablerFormForUpdate(Id edgeEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
edgeEnablerId
- the Id
of the EdgeEnabler
NotFoundException
- edgeEnablerId
is not
foundNullArgumentException
- edgeEnablerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void updateEdgeEnabler(EdgeEnablerForm edgeEnablerForm) throws OperationFailedException, PermissionDeniedException
edgeEnablerForm
- the form containing the elements to be updatedIllegalStateException
- edgeEnablerForm
already used in an update transactionInvalidArgumentException
- the form contains an invalid
valueNullArgumentException
- edgeEnablerId
or
edgeEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- edgeEnablerForm
did not originate from getEdgeEnablerFormForUpdate()
mandatory
- This method must be implemented. boolean canDeleteEdgeEnablers()
EdgeEnabler
will result in a
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer delete operations to an
unauthorized user. false
if EdgeEnabler
deletion is
not authorized, true
otherwisemandatory
- This method must be implemented. void deleteEdgeEnabler(Id edgeEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
EdgeEnabler.
edgeEnablerId
- the Id
of the EdgeEnabler
to removeNotFoundException
- edgeEnablerId
not
foundNullArgumentException
- edgeEnablerId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageEdgeEnablerAliases()
Id
aliases for edge
enablers. A return of true does not guarantee successful
authorization. A return of false indicates that it is known changing
an alias will result in a PERMISSION_DENIED.
This is
intended as a hint to an application that may opt not to offer alias
operations to an unauthorized user. false
if EdgeEnabler
aliasing is
not authorized, true
otherwisemandatory
- This method must be implemented. void aliasEdgeEnabler(Id edgeEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id
to an EdgeEnabler
for the
purpose of creating compatibility. The primary Id
of
the EdgeEnabler
is determined by the provider. The new
Id
performs as an alias to the primary Id
. If the alias is a pointer to another edge enabler. it is
reassigned to the given edge enabler Id.
edgeEnablerId
- the Id
of an EdgeEnabler
aliasId
- the alias Id
AlreadyExistsException
- aliasId
is
already assignedNotFoundException
- edgeEnablerId
not
foundNullArgumentException
- edgeEnablerId
or
aliasId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.