public interface IdIssueSession extends OsidSession
This is a simple session used to create new Ids.
Modifier and Type | Method and Description |
---|---|
boolean |
canIssueIds()
Tests if this user can issue
Ids. |
Id |
issueId()
Issues a new
Id . |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canIssueIds()
Ids.
A return of true does
not guarantee successful authorization. A return of false indicates
that it is known create methods in this session will result in a
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer create operations. false
if create methods are not authorized,
true
otherwisemandatory
- This method must be implemented. Id issueId() throws OperationFailedException, PermissionDeniedException
Id
. This method creates a new Id for a
predetermined authority and namespace. Id
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.