EntityObject.java revision 35ab1c5bca11317474fe12bdd8d22c17cdaf2697
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* 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
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: EntityObject.java,v 1.5 2008/06/25 05:43:26 qcheng Exp $
*
*/
public class EntityObject {
// Service Name
private String tokenString;
protected String entityLocation;
private final SessionCookies sessionCookies;
throws EntityException {
this.entityLocation = entityLocation;
}
}
/**
* Creates entity.
*
* @param entityName
* Name of the entity.eg.cn=websphereAgent.
* @param entityType
* Type of entity being created. eg. Agent The types supported by
* SDK are configured in the list of Managed Objects in the
* <code>DAI</code> service.
* @param attributes
* Map where the key is the name of the entity, and the value is
* a Map to represent Attribute-Value Pairs
* @return Set of <code>AMEntity</code> objects created
* @throws EntityException
* if there is an internal error in the AM Store
* @throws SSOException
* if the single sign on token is no longer valid
*/
try {
} catch (RemoteException rex) {
"EntityObject:createEntity->RemoteException", rex);
ex);
}
}
/**
* Deletes entities.
*
* @param entityName
* Name of the entity.eg.cn=websphereAgent
* @param entityType
* Type of entity being created. eg. Agent The types supported by
* SDK are configured in the list of Managed Objects in the
* <code>DAI</code> service.
* @throws EntityException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid
*/
throws EntityException, SSOException {
try {
} catch (RemoteException rex) {
"EntityObject:deleteEntity->RemoteException", rex);
ex);
}
}
/**
* Returns the entity object for each entity given the entityType and
* entityName(s) in that particular organization.
*
* @param entityName Name of the entity. example
* <code>cn=websphereAgent</code>.
* @param entityType Type of entity being created. eg. Agent The types
* supported by SDK are configured in the list of Managed Objects
* in the <code>DAI</code> service.
* @return Set of Entity objects.
* @throws EntityException if there is an internal error in the AM Store.
* @throws SSOException if the sign on is no longer valid.
*/
throws EntityException, SSOException {
try {
} catch (RemoteException rex) {
"EntityObject:getEntity->RemoteException", rex);
}
}
/**
* Returns a set of Entity Names given the Entity Type for that particular
* organization.
*
* @param entityName Name of the entity. example
* <code>cn=websphereAgent</code>.
* @param entityType Type of entity being created. eg. Agent The types
* supported by SDK are configured in the list of Managed Objects
* in the <code>DAI</code> service.
* @param entityFilter
* @return Set of Entity Names.
* @throws EntityException if there is an internal error in the AM Store.
* @throws SSOException if the sign on is no longer valid.
*/
public Set getEntityNames(
) throws EntityException, SSOException {
try {
entityFilter };
null));
} catch (RemoteException rex) {
"EntityObject:getEntityNames->RemoteException", rex);
ex);
}
}
/**
* Sets or replaces attribute values with the new values supplied and Stores
* the changes to directory server.
*
* @param entityName Name of the entity. example
* <code>cn=websphereAgent</code>.
* @param entityType Type of entity being created. eg. Agent The types
* supported by SDK are configured in the list of Managed Objects
* in the <code>DAI</code> service.
* @param attributes
* @throws EntityException if there is an internal error in the AM Store.
* @throws SSOException if the sign on is no longer valid.
*/
public void modifyEntity(
) throws EntityException, SSOException {
try {
} catch (RemoteException rex) {
"EntityObject:modifyEntity->RemoteException", rex);
ex);
}
}
}