Interface ProfileEntryEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes profile entry enablers. The data for
create and update is provided via the ProfileEntryEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasProfileEntryEnabler(Id profileEntryEnablerId, Id aliasId) Adds anIdto aProfileEntryEnablerfor the purpose of creating compatibility.booleanTests if this user can create profile entry enablers.booleancanCreateProfileEntryEnablerWithRecordTypes(Type[] profileEntryEnablerRecordTypes) Tests if this user can create a singleProfileEntryEnablerusing the desired record types.booleanTests if this user can delete profile entry enablers.booleanTests if this user can manageIdaliases for profile entry enablers.booleanTests if this user can update profile entry enablers.createProfileEntryEnabler(ProfileEntryEnablerForm profileEntryEnablerForm) Creates a newProfileEntryEnabler.voiddeleteProfileEntryEnabler(Id profileEntryEnablerId) Deletes aProfileEntryEnabler.Gets theProfileassociated with this session.getProfileEntryEnablerFormForCreate(Type[] profileEntryEnablerRecordTypes) Gets the profile entry enabler form for creating new profile entry enablers.getProfileEntryEnablerFormForUpdate(Id profileEntryEnablerId) Gets the profile entry enabler form for updating an existing profile entry enabler.Gets theProfileIdassociated with this session.voidupdateProfileEntryEnabler(ProfileEntryEnablerForm profileEntryEnablerForm) Updates an existing profile entry 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
-
getProfileId
Id getProfileId()Gets theProfileIdassociated with this session.- Returns:
- the
Profile Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getProfile
Gets theProfileassociated with this session.- Returns:
- the profile
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateProfileEntryEnabler
boolean canCreateProfileEntryEnabler()Tests if this user can create profile entry enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aProfileEntryEnablerwill 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:
falseifProfileEntryEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateProfileEntryEnablerWithRecordTypes
Tests if this user can create a singleProfileEntryEnablerusing the desired record types. WhileProfileRulesManager.getProfileEntryEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificProfileEntryEnabler. Providing an empty array tests if aProfileEntryEnablercan be created with no records.- Parameters:
profileEntryEnablerRecordTypes- array of profile entry enabler types- Returns:
trueifProfileEntryEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-profileEntryEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getProfileEntryEnablerFormForCreate
ProfileEntryEnablerForm getProfileEntryEnablerFormForCreate(Type[] profileEntryEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the profile entry enabler form for creating new profile entry enablers. A new form should be requested for each create transaction.- Parameters:
profileEntryEnablerRecordTypes- array of profile entry enabler types- Returns:
- the profile entry enabler form
- Throws:
NullArgumentException-profileEntryEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unabel to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createProfileEntryEnabler
ProfileEntryEnabler createProfileEntryEnabler(ProfileEntryEnablerForm profileEntryEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newProfileEntryEnabler.- Parameters:
profileEntryEnablerForm- the form for thisProfileEntryEnabler- Returns:
- the new
ProfileEntryEnabler - Throws:
IllegalStateException-profileEntryEnablerFormalready used in a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-profileEntryEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-profileEntryEnablerFormdid not originate fromgetProfileEntryEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateProfileEntryEnablers
boolean canUpdateProfileEntryEnablers()Tests if this user can update profile entry enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aProfileEntryEnablerwill 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:
falseifProfileEntryEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getProfileEntryEnablerFormForUpdate
ProfileEntryEnablerForm getProfileEntryEnablerFormForUpdate(Id profileEntryEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the profile entry enabler form for updating an existing profile entry enabler. A new profile entry enabler form should be requested for each update transaction.- Parameters:
profileEntryEnablerId- theIdof theProfileEntryEnabler- Returns:
- the profile entry enabler form
- Throws:
NotFoundException-profileEntryEnablerIdis not foundNullArgumentException-profileEntryEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateProfileEntryEnabler
void updateProfileEntryEnabler(ProfileEntryEnablerForm profileEntryEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing profile entry enabler.- Parameters:
profileEntryEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-profileEntryEnablerFormalready used in an upate transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-profileEntryEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-profileEntryEnablerFormdid not originate fromgetProfileEntryEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteProfileEntryEnablers
boolean canDeleteProfileEntryEnablers()Tests if this user can delete profile entry enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aProfileEntryEnablerwill 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:
falseifProfileEntryEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteProfileEntryEnabler
void deleteProfileEntryEnabler(Id profileEntryEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aProfileEntryEnabler.- Parameters:
profileEntryEnablerId- theIdof theProfileEntryEnablerto remove- Throws:
NotFoundException-profileEntryEnablerIdnot foundNullArgumentException-profileEntryEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageProfileEntryEnablerAliases
boolean canManageProfileEntryEnablerAliases()Tests if this user can manageIdaliases for profile entry 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:
falseifProfileEntryEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasProfileEntryEnabler
void aliasProfileEntryEnabler(Id profileEntryEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds anIdto aProfileEntryEnablerfor the purpose of creating compatibility. The primaryIdof theProfileEntryEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another profile entry enabler. it is reassigned to the given profile entry enablerId.- Parameters:
profileEntryEnablerId- theIdof aProfileEntryEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-profileEntryEnablerIdnot foundNullArgumentException-profileEntryEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-