1 20 21 package org.jdesktop.jdic.filetypes.internal; 22 23 import org.jdesktop.jdic.filetypes.Association; 24 import org.jdesktop.jdic.filetypes.AssociationAlreadyRegisteredException; 25 import org.jdesktop.jdic.filetypes.AssociationNotRegisteredException; 26 import org.jdesktop.jdic.filetypes.RegisterFailedException; 27 28 29 32 public interface AppAssociationWriter { 33 34 37 public final static int USER_LEVEL = AppConstants.USER_LEVEL; 38 public final static int SYSTEM_LEVEL = AppConstants.SYSTEM_LEVEL; 39 public final static int DEFAULT_LEVEL = AppConstants.DEFAULT_LEVEL; 40 41 48 public void checkAssociationValidForRegistration(Association assoc) 49 throws IllegalArgumentException ; 50 51 58 public void checkAssociationValidForUnregistration(Association assoc) 59 throws IllegalArgumentException ; 60 61 68 public boolean isAssociationExist(Association assoc, int level); 69 70 79 public void registerAssociation(Association assoc, int level) 80 throws AssociationAlreadyRegisteredException, RegisterFailedException; 81 82 91 public void unregisterAssociation(Association assoc, int level) 92 throws AssociationNotRegisteredException, RegisterFailedException; 93 } 94 | Popular Tags |