Package org.jmanage.core.data

Examples of org.jmanage.core.data.AttributeListData


                    resultData[index] =
                            getAttributes(context,
                                    childAppConfig, objectName, attributes);
                } catch (ConnectionFailedException e) {
                    resultData[index] =
                            new AttributeListData(childAppConfig.getName());
                }
            }
        }else{
            resultData = new AttributeListData[1];
            resultData[0] =
View Full Code Here


        try {
            connection = ServerConnector.getServerConnection(appConfig);
            List attrList =
                    connection.getAttributes(objectName, attributes);
            return new AttributeListData(appConfig.getName(), attrList);
        } finally {
            ServiceUtils.close(connection);
        }
    }
View Full Code Here

            ObjectAttribute objAttr = (ObjectAttribute)attrIterator.next();
            AccessController.checkAccess(context,
                    ACLConstants.ACL_UPDATE_MBEAN_ATTRIBUTES,
                    objAttr.getName());
        }
        AttributeListData attrListData = null;
        ServerConnection serverConnection = null;
        try{
            serverConnection = ServerConnector.getServerConnection(appConfig);
            attributeList =
                    serverConnection.setAttributes(objectName, attributeList);
            attrListData = new AttributeListData(appConfig.getName(),
                    attributeList);
            String logString = getLogString(attributeList);
            UserActivityLogger.getInstance().logActivity(
                    context.getUser().getUsername(),
                    "Updated the attributes of application:" +
                    appConfig.getName() + ", object name:" +
                    objectName.getCanonicalName() +
                    logString);
        }catch(ConnectionFailedException e){
            logger.log(Level.FINE, "Error connecting to :" +
                    appConfig.getName(), e);
            attrListData = new AttributeListData(appConfig.getName());
        }finally{
            ServiceUtils.close(serverConnection);
        }
        return attrListData;
    }
View Full Code Here

TOP

Related Classes of org.jmanage.core.data.AttributeListData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.