Interface JobConstrainerEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes job constrainer enablers. The data for
create and update is provided via the JobConstrainerEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasJobConstrainerEnabler(Id jobConstrainerEnablerId, Id aliasId) Adds anIdto aJobConstrainerEnablerfor the purpose of creating compatibility.booleanTests if this user can create job constrainer enablers.booleancanCreateJobConstrainerEnablerWithRecordTypes(Type[] jobConstrainerEnablerRecordTypes) Tests if this user can create a singleJobConstrainerEnablerusing the desired record types.booleanTests if this user can delete job constrainer enablers.booleanTests if this user can manageIdaliases for job constrainer enablers.booleanTests if this user can update job constrainer enablers.createJobConstrainerEnabler(JobConstrainerEnablerForm jobConstrainerEnablerForm) Creates a newJobConstrainerEnabler.voiddeleteJobConstrainerEnabler(Id jobConstrainerEnablerId) Deletes aJobConstrainerEnabler.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.getJobConstrainerEnablerFormForCreate(Type[] jobConstrainerEnablerRecordTypes) Gets the job constrainer enabler form for creating new job constrainer enablers.getJobConstrainerEnablerFormForUpdate(Id jobConstrainerEnablerId) Gets the job constrainer enabler form for updating an existing job constrainer enabler.voidupdateJobConstrainerEnabler(JobConstrainerEnablerForm jobConstrainerEnablerForm) Updates an existing job constrainer 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.
-
canCreateJobConstrainerEnabler
boolean canCreateJobConstrainerEnabler()Tests if this user can create job constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known aJobConstrainerEnablerwill 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:
falseifJobConstrainerEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateJobConstrainerEnablerWithRecordTypes
Tests if this user can create a singleJobConstrainerEnablerusing the desired record types. WhileResourcingRulesManager.getJobConstrainerEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificJobConstrainerEnabler. Providing an empty array tests if aJobConstrainerEnablercan be created with no records.- Parameters:
jobConstrainerEnablerRecordTypes- array of job constrainer enabler record types- Returns:
trueifJobConstrainerEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-jobConstrainerEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getJobConstrainerEnablerFormForCreate
JobConstrainerEnablerForm getJobConstrainerEnablerFormForCreate(Type[] jobConstrainerEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the job constrainer enabler form for creating new job constrainer enablers. A new form should be requested for each create transaction.- Parameters:
jobConstrainerEnablerRecordTypes- array of job constrainer enabler record types- Returns:
- the job constrainer enabler form
- Throws:
NullArgumentException-jobConstrainerEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form with requested record types- Compliance:
mandatory- This method must be implemented.
-
createJobConstrainerEnabler
JobConstrainerEnabler createJobConstrainerEnabler(JobConstrainerEnablerForm jobConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newJobConstrainerEnabler.- Parameters:
jobConstrainerEnablerForm- the form for thisJobConstrainerEnabler- Returns:
- the new
JobConstrainerEnabler - Throws:
IllegalStateException-jobConstrainerEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-jobConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-jobConstrainerEnablerFormdid not originate fromgetJobConstrainerEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateJobConstrainerEnablers
boolean canUpdateJobConstrainerEnablers()Tests if this user can update job constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aJobConstrainerEnablerwill 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:
falseifJobConstrainerEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getJobConstrainerEnablerFormForUpdate
JobConstrainerEnablerForm getJobConstrainerEnablerFormForUpdate(Id jobConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the job constrainer enabler form for updating an existing job constrainer enabler. A new job constrainer enabler form should be requested for each update transaction.- Parameters:
jobConstrainerEnablerId- theIdof theJobConstrainerEnabler- Returns:
- the job constrainer enabler form
- Throws:
NotFoundException-jobConstrainerEnablerIdis not foundNullArgumentException-jobConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateJobConstrainerEnabler
void updateJobConstrainerEnabler(JobConstrainerEnablerForm jobConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing job constrainer enabler.- Parameters:
jobConstrainerEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-jobConstrainerEnablerFormalready used in an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-jobConstrainerEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-jobConstrainerEnablerFormdid not originate fromgetJobConstrainerEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteJobConstrainerEnablers
boolean canDeleteJobConstrainerEnablers()Tests if this user can delete job constrainer enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aJobConstrainerEnablerwill 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:
falseifJobConstrainerEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteJobConstrainerEnabler
void deleteJobConstrainerEnabler(Id jobConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aJobConstrainerEnabler.- Parameters:
jobConstrainerEnablerId- theIdof theJobConstrainerEnablerto remove- Throws:
NotFoundException-jobConstrainerEnablerIdnot foundNullArgumentException-jobConstrainerEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageJobConstrainerEnablerAliases
boolean canManageJobConstrainerEnablerAliases()Tests if this user can manageIdaliases for job constrainer 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:
falseifJobConstrainerEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasJobConstrainerEnabler
void aliasJobConstrainerEnabler(Id jobConstrainerEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aJobConstrainerEnablerfor the purpose of creating compatibility. The primaryIdof theJobConstrainerEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another job constrainer enabler. it is reassigned to the given job constrainer enablerId.- Parameters:
jobConstrainerEnablerId- theIdof aJobConstrainerEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-jobConstrainerEnablerIdnot foundNullArgumentException-jobConstrainerEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-