FileDocCategorySizeDatePackage
ConvertServiceAdminImpl.javaAPI DocExample4129Thu Mar 16 11:52:24 GMT 2000None

ConvertServiceAdminImpl

public class ConvertServiceAdminImpl extends UnicastRemoteObject implements ConvertServiceAdminProxy

Fields Summary
private JoinManager
manager
private boolean
allowAccess
Constructors Summary
public ConvertServiceAdminImpl(JoinManager manager)


         
        this.manager = manager;
    
Methods Summary
public voidaddLookupAttributes(Entry[] attrSets)

        checkAccess();
        manager.addAttributes(attrSets, true);
    
public voidaddLookupGroups(java.lang.String[] groups)

        checkAccess();
        try {
            manager.addGroups(groups);
        } catch (IOException ex) {
            throw new RemoteException("Error in AddGroups", ex);
        }
    
public voidaddLookupLocators(LookupLocator[] locators)

        checkAccess();
        manager.addLocators(locators);
    
public voidallowAdminAccess()

        allowAccess = true;
    
private voidcheckAccess()

        if (allowAccess == false)
            throw new SecurityException("Admin access not allowed");
    
public voiddenyAdminAccess()

        allowAccess = false;
    
public Entry[]getLookupAttributes()

        checkAccess();
        return manager.getAttributes();
    
public java.lang.String[]getLookupGroups()

        checkAccess();
        return manager.getGroups();
    
public LookupLocator[]getLookupLocators()

        checkAccess();
        return manager.getLocators();
    
public voidmodifyLookupAttributes(Entry[] attrSetTemplates, Entry[] attrSets)

        checkAccess();
        manager.modifyAttributes(attrSetTemplates, attrSets, true);
    
public voidremoveLookupGroups(java.lang.String[] groups)

        checkAccess();
        try {
            manager.removeGroups(groups);
        } catch (IOException ex) {
            throw new RemoteException("Error in RemoveGroups", ex);
        }
    
public voidremoveLookupLocators(LookupLocator[] locators)

        checkAccess();
        manager.removeLocators(locators);
    
public voidsetLookupGroups(java.lang.String[] groups)

        checkAccess();
        try {
            manager.setGroups(groups);
        } catch (IOException ex) {
            throw new RemoteException("Error in SetGroups", ex);
        }
    
public voidsetLookupLocators(LookupLocator[] locators)

        checkAccess();
        manager.setLocators(locators);