public interface ProfileEntryEnablerProfileAssignmentSession extends OsidSession
This session provides methods to re-assign ProfileEntryEnabler
to Profile mappings. A ProfileEntryEnabler
may appear in multiple Profile objects and removing
the last reference to a ProfileEntryEnabler is the
equivalent of deleting it. Each Profile may have its own
authorizations governing who is allowed to operate on it.
Adding a reference of a ProfileEntryEnabler to another
Profile is not a copy operation (eg: does not change its
Id ).
| Modifier and Type | Method and Description |
|---|---|
void |
assignProfileEntryEnablerToProfile(Id profileEntryEnablerId,
Id profileId)
Adds an existing
ProfileEntryEnabler to a
Profile. |
boolean |
canAssignProfileEntryEnablers()
Tests if this user can alter profile entry enabler/profile mappings.
|
boolean |
canAssignProfileEntryEnablersToProfile(Id profileId)
Tests if this user can alter profile entry enabler/profile mappings.
|
IdList |
getAssignableProfileIds(Id profileId)
Gets a list of profiles including and under the given profile node in
which any profile entry enabler can be assigned.
|
IdList |
getAssignableProfileIdsForProfileEntryEnabler(Id profileId,
Id profileEntryEnablerId)
Gets a list of profiles including and under the given profile node in
which a specific profile entry enabler can be assigned.
|
void |
unassignProfileEntryEnablerFromProfile(Id profileEntryEnablerId,
Id profileId)
Removes a
ProfileEntryEnabler from a Profile. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canAssignProfileEntryEnablers()
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false if mapping is not authorized, true
otherwisemandatory - This method must be implemented. boolean canAssignProfileEntryEnablersToProfile(Id profileId)
PERMISSION_DENIED. This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users.profileId - the Id of the Profile false if mapping is not authorized, true
otherwiseNullArgumentException - profileId is
null mandatory - This method must be implemented. IdList getAssignableProfileIds(Id profileId) throws OperationFailedException
profileId - the Id of the Profile Ids NullArgumentException - profileId is
null OperationFailedException - unable to complete requestmandatory - This method must be implemented. IdList getAssignableProfileIdsForProfileEntryEnabler(Id profileId, Id profileEntryEnablerId) throws OperationFailedException
profileId - the Id of the Profile profileEntryEnablerId - the Id of the
ProfileEntryEnabler Ids NullArgumentException - profileId or
profileEntryEnablerId is null OperationFailedException - unable to complete requestmandatory - This method must be implemented. void assignProfileEntryEnablerToProfile(Id profileEntryEnablerId, Id profileId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
ProfileEntryEnabler to a
Profile. profileEntryEnablerId - the Id of the
ProfileEntryEnabler profileId - the Id of the Profile AlreadyExistsException - profileEntryEnablerId
is already assigned to profileId NotFoundException - profileEntryEnablerId
or profileId not foundNullArgumentException - profileEntryEnablerId
or profileId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void unassignProfileEntryEnablerFromProfile(Id profileEntryEnablerId, Id profileId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProfileEntryEnabler from a Profile.
profileEntryEnablerId - the Id of the
ProfileEntryEnabler profileId - the Id of the Profile NotFoundException - profileEntryEnablerId
or profileId not found or
profileEntryEnablerId not assigned to profileId
NullArgumentException - profileEntryEnablerId
or profileId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.