Update of a Log Profile

Updates a log profile.

Syntax

void updateDomainLogProfile(String profileName, String description, Collection<DomainLogTrapVO> traps) throws SUPAdminException; 

Returns

If successful, returns silently. If unsuccessful, returns SUPAdminException.

Examples

  • String profileName = ”profile1”;
    String description = "domain log profile description updated";
    
    Collection<DomainLogTrapVO<? extends Enum>> traps = new ArrayList<DomainLogTrapVO<? extends Enum>>();
    DomainLogTrapVO<DOMAIN_LOG_PROFILE_PACKAGE_TRAP> trap1 = new DomainLogTrapVO<DOMAIN_LOG_PROFILE_PACKAGE_TRAP>(
    DOMAIN_LOG_PROFILE_PACKAGE_TRAP.APPLICATION_ID);
    
    DomainLogTrapVO<DOMAIN_LOG_PROFILE_SECURITY_TRAP> trap2 = new DomainLogTrapVO<DOMAIN_LOG_PROFILE_SECURITY_TRAP>(
    DOMAIN_LOG_PROFILE_SECURITY_TRAP.SECURITY_CONF);
    
    DomainLogTrapVO<DOMAIN_LOG_PROFILE_ENDPOINT_TRAP> trap3 = new DomainLogTrapVO<DOMAIN_LOG_PROFILE_ENDPOINT_TRAP>(
    DOMAIN_LOG_PROFILE_ENDPOINT_TRAP.ENDPOINT);
    
    DomainLogTrapVO<DOMAIN_LOG_PROFILE_APPCONNECTION_TRAP> trap4 = new DomainLogTrapVO<DOMAIN_LOG_PROFILE_APPCONNECTION_TRAP>(
    DOMAIN_LOG_PROFILE_APPCONNECTION_TRAP.APPLICATION_CONNECTION_ID);
    
    trap1.setEnabled(true);
    trap2.setEnabled(true);
    trap3.setEnabled(true);
    trap4.setEnabled(true);
    
    traps.add(trap1);
    traps.add(trap2);
    traps.add(trap3);
    traps.add(trap4);
    
    domainLog.updateDomainLogProfile(profileName, description, traps);