public interface JobProcessorEnablerAdminSession extends OsidSession
This session creates and removes job processor enablers. The data for
create and update is provided via the JobProcessorEnablerForm.
Modifier and Type | Method and Description |
---|---|
void |
aliasJobProcessorEnabler(Id jobProcessorEnablerId,
Id aliasId)
Adds an
Id to a JobProcessorEnabler for
the purpose of creating compatibility. |
boolean |
canCreateJobProcessorEnabler()
Tests if this user can create job processor enablers.
|
boolean |
canCreateJobProcessorEnablerWithRecordTypes(Type[] jobProcessorEnablerRecordTypes)
Tests if this user can create a single
JobProcessorEnabler
using the desired record types. |
boolean |
canDeleteJobProcessorEnablers()
Tests if this user can delete job processor enablers.
|
boolean |
canManageJobProcessorEnablerAliases()
Tests if this user can manage
Id aliases for job
processor enablers. |
boolean |
canUpdateJobProcessorEnablers()
Tests if this user can update job processor enablers.
|
JobProcessorEnabler |
createJobProcessorEnabler(JobProcessorEnablerForm jobProcessorEnablerForm)
Creates a new
JobProcessorEnabler. |
void |
deleteJobProcessorEnabler(Id jobProcessorEnablerId)
Deletes a
JobProcessorEnabler. |
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
JobProcessorEnablerForm |
getJobProcessorEnablerFormForCreate(Type[] jobProcessorEnablerRecordTypes)
Gets the job processor enabler form for creating new job processor
enablers.
|
JobProcessorEnablerForm |
getJobProcessorEnablerFormForUpdate(Id jobProcessorEnablerId)
Gets the job processor enabler form for updating an existing job
processor enabler.
|
void |
updateJobProcessorEnabler(JobProcessorEnablerForm jobProcessorEnablerForm)
Updates an existing job processor enabler.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getFoundryId()
Foundry
Id
associated with this
session. Foundry Id
associated with this sessionmandatory
- This method must be implemented. Foundry getFoundry() throws OperationFailedException, PermissionDeniedException
Foundry
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canCreateJobProcessorEnabler()
JobProcessorEnabler
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 JobProcessorEnabler
creation is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canCreateJobProcessorEnablerWithRecordTypes(Type[] jobProcessorEnablerRecordTypes)
JobProcessorEnabler
using the desired record types. While
ResourcingRulesManager.getJobProcessorEnablerRecordTypes()
can
be used to examine which records are supported, this method tests
which record(s) are required for creating a specific
JobProcessorEnabler.
Providing an empty array tests if a
JobProcessorEnabler
can be created with no records.jobProcessorEnablerRecordTypes
- array of job processor enabler
record types true
if JobProcessorEnabler
creation using the specified record Types
is
supported, false
otherwiseNullArgumentException
-
jobProcessorEnablerRecordTypes
is null
mandatory
- This method must be implemented. JobProcessorEnablerForm getJobProcessorEnablerFormForCreate(Type[] jobProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
jobProcessorEnablerRecordTypes
- array of job processor enabler
record typesNullArgumentException
-
jobProcessorEnablerRecordTypes
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- unable to get form with
requested record typesmandatory
- This method must be implemented. JobProcessorEnabler createJobProcessorEnabler(JobProcessorEnablerForm jobProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException
JobProcessorEnabler.
jobProcessorEnablerForm
- the form for this
JobProcessorEnabler
JobProcessorEnabler
IllegalStateException
- jobProcessorEnablerForm
already used in a create transactionInvalidArgumentException
- one or more of the form
elements is invalidNullArgumentException
- jobProcessorEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- jobProcessorEnablerForm
did not originate from
getJobProcessorEnablerFormForCreate()
mandatory
- This method must be implemented. boolean canUpdateJobProcessorEnablers()
JobProcessorEnabler
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 JobProcessorEnabler
modification is not authorized, true
otherwisemandatory
- This method must be implemented. JobProcessorEnablerForm getJobProcessorEnablerFormForUpdate(Id jobProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
jobProcessorEnablerId
- the Id
of the
JobProcessorEnabler
NotFoundException
- jobProcessorEnablerId
is not foundNullArgumentException
- jobProcessorEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void updateJobProcessorEnabler(JobProcessorEnablerForm jobProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException
jobProcessorEnablerForm
- the form containing the elements to be
updatedIllegalStateException
- jobProcessorEnablerForm
already used in an update transactionInvalidArgumentException
- the form contains an invalid
valueNullArgumentException
- jobProcessorEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- jobProcessorEnablerForm
did not originate from
getJobProcessorEnablerFormForUpdate()
mandatory
- This method must be implemented. boolean canDeleteJobProcessorEnablers()
JobProcessorEnabler
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 JobProcessorEnabler
deletion is not authorized, true
otherwisemandatory
- This method must be implemented. void deleteJobProcessorEnabler(Id jobProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobProcessorEnabler.
jobProcessorEnablerId
- the Id
of the
JobProcessorEnabler
to removeNotFoundException
- jobProcessorEnablerId
not foundNullArgumentException
- jobProcessorEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageJobProcessorEnablerAliases()
Id
aliases for job
processor 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 JobProcessorEnabler
aliasing is not authorized, true
otherwisemandatory
- This method must be implemented. void aliasJobProcessorEnabler(Id jobProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id
to a JobProcessorEnabler
for
the purpose of creating compatibility. The primary Id
of the JobProcessorEnabler
is determined by the
provider. The new Id
performs as an alias to the
primary Id
. If the alias is a pointer to another job
processor enabler. it is reassigned to the given job processor enabler
Id.
jobProcessorEnablerId
- the Id
of a
JobProcessorEnabler
aliasId
- the alias Id
AlreadyExistsException
- aliasId
is
already assignedNotFoundException
- jobProcessorEnablerId
not foundNullArgumentException
- jobProcessorEnablerId
or aliasId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.