AMOrgTemplateImpl.java revision 8af80418ba1ec431c8027fa9668e5678658d3611
/**
* 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: AMOrgTemplateImpl.java,v 1.3 2008/06/25 05:41:21 qcheng Exp $
*
*/
/*
* @deprecated As of Sun Java System Access Manager 7.1.
*/
this.serviceName = serviceName;
serviceConfig = sc;
if (serviceConfig == null) {
}
try {
ssoToken);
if (serviceSchema == null) {
}
} catch (SMSException smsex) {
}
}
/**
* Returns the name of the service to which this template belongs. This
* method can be used in conjunction with SMS APIs to get the
* AttributeSchema/ServiceSchema for the service.
*
* @return service name.
*/
public String getServiceName() {
return this.serviceName;
}
/**
* Gets the Attribute Schemas that defines the schema (metadata) of this
* template.
*
* @return Set Set of com.iplanet.services.AttributeSchema for this template
*
* @throws AMException
* if there is an internal error in the AM Store
* @throws SSOException
* if the sign on is no longer valid.
*/
return serviceSchema.getAttributeSchemas();
}
/**
* Gets the priority of this template in the DIT.
*
* @return int priority
*/
public int getPriority() throws UnsupportedOperationException {
throw new UnsupportedOperationException();
}
/**
* Sets the priority of this template in the DIT
*
* @param priority
* priority
* @throws UnsupportedOperationException
*/
throw new UnsupportedOperationException();
}
/**
* Gets the type of the template.
*
* @return Returns AMTemplate.ORGANIZATION_TEMPLATE
*/
public int getType() {
return ORGANIZATION_TEMPLATE;
}
/**
* throws UnsupportedOperationException
*
* @return Set DNs of the named policies
*/
throw new UnsupportedOperationException();
}
/**
* Sets attribute values in this AMObject. Note that this method sets or
* replaces the attribute value with the new value supplied.
*
* @param attributes
* Map where key is the attribute name and value is the attribute
* value
*/
}
/**
* Stores the change to directory server.
*
* @throws AMException
* if there is an internal problem with AM Store.
* @throws SSOException
* if the sign-on is no longer valid.
*/
modAttributes = new HashMap();
try {
} catch (ServiceNotFoundException ex) {
args);
} catch (InvalidAttributeValueException ex) {
args);
} catch (SMSException ex) {
args);
}
}
/**
* Gets attribute value.
*
* @param attributeName
* Attribute name
* @return Set of attribute values.
* @throws AMException
* data from the data store
* @throws SSOException
* if the sign-on is no longer valid.
*/
}
return new HashSet();
}
/**
* Gets string type attribute value.
*
* @param attributeName
* Attribute name
* @return String value of attribute
* @throws AMException
* data from the data store
* @throws SSOException
* if the sign-on is no longer valid.
*/
return "";
} else {
}
}
/**
* Gets Map of specified attributes. Map key is the attribute name and value
* is the attribute value.
*
* @param attributeNames
* The Set of attribute names.
* @return Map of specified attributes.
* @throws AMException
* if there is an internal problem with AM Store.
* @throws SSOException
* if the sign-on is no longer valid.
*/
}
}
return resultMap;
} else {
return attributes;
}
}
/**
* Deletes this tempate.
*
* @param recursive
* is not used.
* @throws AMException
* if there is an internal problem with AM Store.
* @throws SSOException
* if the sign-on is no longer valid.
*/
modAttributes = new HashMap();
try {
token);
} catch (ServiceNotFoundException ex) {
args);
} catch (SMSException ex) {
args);
}
}
/**
* Always return true
*/
public boolean isExists() throws SSOException {
return (true);
}
}