Solaris_ActiveProject.java revision 9a70fc3be3b1e966bf78825cdb8d509963a6f0a1
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2001 by Sun Microsystems, Inc.
* All rights reserved.
*
*/
/**
* Provider of the Solaris_ActiveProject class. This class represents
* a Project that is actively running on an OperatingSystem.
* @author Sun Microsystems
*/
public class Solaris_ActiveProject extends SRMProvider
implements Authorizable, Solaris_ActiveProjectProperties {
/**
* The name of the provider implemented by this class.
*/
/**
* Get the name of the provider implemented by this class.
* @returns String provider name
*/
protected String getProviderName() {
return providerName;
}
/**
* Returns a specific CIMInstance.
* @param op - the name of the instance to be retrieved. This must include
* all of the keys and values for the instance.
* @param localOnly - if true, only the local properties of the class are
* returned, otherwise all properties are required
* @param includeQualifiers - if true, the qualifiers are returned as part
* of of the returned instancei, otherwise no qualifiers will be returned
* @param includeClassOrigin - if true, the class origin of each property
* will be returned
* @param String[] - if null, all properties are returned, otherwise only
* the properties specified will be returned. Any duplicate properties will
* be ignored.
* @param cc - the class reference
*
* @return CIMInstance the retrieved instance.
* @exception CIMException - the method getInstance throws a CIMException
* if the CIMObjectPath is incorrect or does not exist.
*/
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
throws CIMException {
try {
while (e.hasMoreElements()) {
projName =
}
}
throw notFoundEx;
}
} catch (Exception e) {
}
return ci;
} // end getInstance
/**
* Returns all instances of Solaris_ActiveProject.
* @param op - the object path specifies the class to be enumerated
* localOnly - if true, only the local properties of the class are returned,
* otherwise all properties are required
* @param includeQualifiers - if true, the qualifiers are returned as part
* of of the returned instancei, otherwise no qualifiers will be returned
* @param includeClassOrigin - if true, the class origin of each property
* will be returned
* @param String[] - if null, all properties are returned, otherwise only
* the properties specified will be
* returned. Any duplicate properties will be ignored.
* @param cc - the class reference
* @return An array of CIMInstance
* @exception CIMException - if the CIMObjectPath is incorrect or does not
* exist.
*/
boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
throws CIMException {
try {
while (i.hasNext()) {
}
return ciArray;
} catch (Exception e) {
}
} // end enumerateInstances
/**
* Returns the names of all Solaris_ActiveProject instances,
*
* @param op - the class name to enumerate the instances
* @param cc - the class reference passed to the provider
* @return an array of CIMObjectPath containing names of the enumerated
* instances.
* @exception CIMException - if the classname is null or does not exist.
*/
throws CIMException {
try {
while (i.hasNext()) {
}
return copArray;
} catch (Exception e) {
}
} // end enumerateInstanceNames
try {
// Fill the array; each obj takes the bulk data for one user.
while (i.hasNext()) {
toBulkData());
}
// rem: we can only return CIMValues in our outParams
} catch (Exception e) {
}
return (rv);
} // end getBulkData
} // end class Solaris_ActiveProject