|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AppAssociationWriter
Containing funtions to modify the association information
Field Summary | |
---|---|
static int |
DEFAULT_LEVEL
|
static int |
SYSTEM_LEVEL
|
static int |
USER_LEVEL
Constants for the registration/unregistration level. |
Method Summary | |
---|---|
void |
checkAssociationValidForRegistration(Association assoc)
Checks whether the given assocation is valid for registration according to platform-specific logic. |
void |
checkAssociationValidForUnregistration(Association assoc)
Checks whether the given assocation is valid for unregistration according to platform-specific logic. |
boolean |
isAssociationExist(Association assoc,
int level)
Checks whether the given assocation exists in the system |
void |
registerAssociation(Association assoc,
int level)
Registers the given association within specified level. |
void |
unregisterAssociation(Association assoc,
int level)
Unregisters the given association in specified level. |
Field Detail |
---|
static final int USER_LEVEL
static final int SYSTEM_LEVEL
static final int DEFAULT_LEVEL
Method Detail |
---|
void checkAssociationValidForRegistration(Association assoc) throws java.lang.IllegalArgumentException
assoc
- a given Association object.
java.lang.IllegalArgumentException
- if the given association is not valid for registration.void checkAssociationValidForUnregistration(Association assoc) throws java.lang.IllegalArgumentException
assoc
- a given Association object.
java.lang.IllegalArgumentException
- if the given association is not valid for unregistration.boolean isAssociationExist(Association assoc, int level)
assoc
- a given Association object.level
- a given MIME database level.
void registerAssociation(Association assoc, int level) throws AssociationAlreadyRegisteredException, RegisterFailedException
assoc
- a given Association object.level
- a given registration level
AssociationAlreadyRegisteredException
- if the given association has
been registered in the system.
RegisterFailedException
- if the given association fails to be registered.void unregisterAssociation(Association assoc, int level) throws AssociationNotRegisteredException, RegisterFailedException
assoc
- a given Association object.level
- a given registration level
AssociationNotRegisteredException
- if the given association has not been
registered before.
RegisterFailedException
- if the given association fails to be unregistered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |