Interface JobProcessorEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes job processor enablers. The data for
create and update is provided via the JobProcessorEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasJobProcessorEnabler(Id jobProcessorEnablerId, Id aliasId) Adds anIdto aJobProcessorEnablerfor the purpose of creating compatibility.booleanTests if this user can create job processor enablers.booleancanCreateJobProcessorEnablerWithRecordTypes(Type[] jobProcessorEnablerRecordTypes) Tests if this user can create a singleJobProcessorEnablerusing the desired record types.booleanTests if this user can delete job processor enablers.booleanTests if this user can manageIdaliases for job processor enablers.booleanTests if this user can update job processor enablers.createJobProcessorEnabler(JobProcessorEnablerForm jobProcessorEnablerForm) Creates a newJobProcessorEnabler.voiddeleteJobProcessorEnabler(Id jobProcessorEnablerId) Deletes aJobProcessorEnabler.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.getJobProcessorEnablerFormForCreate(Type[] jobProcessorEnablerRecordTypes) Gets the job processor enabler form for creating new job processor enablers.getJobProcessorEnablerFormForUpdate(Id jobProcessorEnablerId) Gets the job processor enabler form for updating an existing job processor enabler.voidupdateJobProcessorEnabler(JobProcessorEnablerForm jobProcessorEnablerForm) Updates an existing job processor enabler.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getFoundryId
Id getFoundryId()Gets theFoundryIdassociated with this session.- Returns:
- the
Foundry Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getFoundry
Gets theFoundryassociated with this session.- Returns:
- the foundry
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateJobProcessorEnabler
boolean canCreateJobProcessorEnabler()Tests if this user can create job processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aJobProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseifJobProcessorEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateJobProcessorEnablerWithRecordTypes
Tests if this user can create a singleJobProcessorEnablerusing the desired record types. WhileResourcingRulesManager.getJobProcessorEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificJobProcessorEnabler. Providing an empty array tests if aJobProcessorEnablercan be created with no records.- Parameters:
jobProcessorEnablerRecordTypes- array of job processor enabler record types- Returns:
trueifJobProcessorEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-jobProcessorEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getJobProcessorEnablerFormForCreate
JobProcessorEnablerForm getJobProcessorEnablerFormForCreate(Type[] jobProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the job processor enabler form for creating new job processor enablers. A new form should be requested for each create transaction.- Parameters:
jobProcessorEnablerRecordTypes- array of job processor enabler record types- Returns:
- the job processor enabler form
- Throws:
NullArgumentException-jobProcessorEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form with requested record types- Compliance:
mandatory- This method must be implemented.
-
createJobProcessorEnabler
JobProcessorEnabler createJobProcessorEnabler(JobProcessorEnablerForm jobProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newJobProcessorEnabler.- Parameters:
jobProcessorEnablerForm- the form for thisJobProcessorEnabler- Returns:
- the new
JobProcessorEnabler - Throws:
IllegalStateException-jobProcessorEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-jobProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-jobProcessorEnablerFormdid not originate fromgetJobProcessorEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateJobProcessorEnablers
boolean canUpdateJobProcessorEnablers()Tests if this user can update job processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aJobProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Returns:
falseifJobProcessorEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getJobProcessorEnablerFormForUpdate
JobProcessorEnablerForm getJobProcessorEnablerFormForUpdate(Id jobProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the job processor enabler form for updating an existing job processor enabler. A new job processor enabler form should be requested for each update transaction.- Parameters:
jobProcessorEnablerId- theIdof theJobProcessorEnabler- Returns:
- the job processor enabler form
- Throws:
NotFoundException-jobProcessorEnablerIdis not foundNullArgumentException-jobProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateJobProcessorEnabler
void updateJobProcessorEnabler(JobProcessorEnablerForm jobProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing job processor enabler.- Parameters:
jobProcessorEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-jobProcessorEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-jobProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-jobProcessorEnablerFormdid not originate fromgetJobProcessorEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteJobProcessorEnablers
boolean canDeleteJobProcessorEnablers()Tests if this user can delete job processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aJobProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.- Returns:
falseifJobProcessorEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteJobProcessorEnabler
void deleteJobProcessorEnabler(Id jobProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aJobProcessorEnabler.- Parameters:
jobProcessorEnablerId- theIdof theJobProcessorEnablerto remove- Throws:
NotFoundException-jobProcessorEnablerIdnot foundNullArgumentException-jobProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageJobProcessorEnablerAliases
boolean canManageJobProcessorEnablerAliases()Tests if this user can manageIdaliases 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifJobProcessorEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasJobProcessorEnabler
void aliasJobProcessorEnabler(Id jobProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aJobProcessorEnablerfor the purpose of creating compatibility. The primaryIdof theJobProcessorEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another job processor enabler. it is reassigned to the given job processor enablerId.- Parameters:
jobProcessorEnablerId- theIdof aJobProcessorEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-jobProcessorEnablerIdnot foundNullArgumentException-jobProcessorEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-