|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.am.console.base.model.AMConsoleListenerAdapter
AMConsoleListenerAdapter
provides defaults implementation
of methods in AMConsoleListener
handlers.
Fields inherited from interface com.iplanet.am.console.base.model.AMConsoleListener |
MODE_CREATION, MODE_GLOBAL_SERVICE, MODE_MODIFICATION |
Constructor Summary | |
AMConsoleListenerAdapter()
|
Method Summary | |
void |
onAfterCreateObject(AMModel model,
AMObject object)
This method is called after object is created. |
void |
onAfterDeleteObject(AMModel model,
int objectType,
java.lang.String locationDN)
This method is called after an object is deleted. |
void |
onAfterUpdateDefaultServiceValues(AMModel model,
java.lang.String name)
This method is called after updating default attributes of a service. |
void |
onAfterUpdateValues(AMModel model,
int objectType,
AMObject object)
This method is called after attributes of object is update. |
void |
onBeforeCreateObject(AMModel model,
int objectType,
AMObject container,
java.lang.String name,
java.util.Map attributeValues)
This method is called before creating an object. |
void |
onBeforeDeleteObject(AMModel model,
int objectType,
java.lang.String locationDN)
This method is called before deleting an object. |
boolean |
onBeforeDisplayModuleTab(AMModel model,
java.lang.String moduleName)
This method is called before displaying a module tab in the header view. |
void |
onBeforeUpdateDefaultServiceValues(AMModel model,
java.lang.String name,
java.util.Map attributeValues)
This method is called before updating default attributes of a service. |
void |
onBeforeUpdateValues(AMModel model,
int objectType,
AMObject object,
java.util.Map attributeValues)
This method is called before updating attribute of an object. |
void |
onRetrieveAttributeValues(AMModel model,
AMObject object,
int action,
int objectType,
java.lang.String serviceName,
SchemaType schemaType,
java.util.Map attributeValues)
This method is called after we have retrieve the values of attributes to be displayed in the creation/profile view. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AMConsoleListenerAdapter()
Method Detail |
public boolean onBeforeDisplayModuleTab(AMModel model, java.lang.String moduleName)
onBeforeDisplayModuleTab
in interface AMConsoleListener
model
- implementation class initiates this event.moduleName
- name of module.public void onBeforeCreateObject(AMModel model, int objectType, AMObject container, java.lang.String name, java.util.Map attributeValues) throws AMConsoleException
AttributeValues
maps attribute name (String) to its values.
Alter this map to have different values for the new objectonBeforeCreateObject
in interface AMConsoleListener
model
- implementation class initiates this eventobjectType
- type of object.
(see com.iplanet.am.sdk.AMObject
)container
- where object is to be created.name
- of new object.attributeValues
- maps name of attribute (String) to its values
(Set).AMConsoleException
- to stop the creation of object.public void onAfterCreateObject(AMModel model, AMObject object)
onAfterCreateObject
in interface AMConsoleListener
model
- implementation class initiates this event.object
- newly created object.public void onBeforeDeleteObject(AMModel model, int objectType, java.lang.String locationDN) throws AMConsoleException
onBeforeDeleteObject
in interface AMConsoleListener
model
- implementation class initiates this event.objectType
- type of object.
(see com.iplanet.am.sdk.AMObject
)locationDN
- distinguished name of object to be deleted.AMConsoleException
- not delete the object.public void onAfterDeleteObject(AMModel model, int objectType, java.lang.String locationDN)
onAfterDeleteObject
in interface AMConsoleListener
model
- implementation class initiates this event.objectType
- type of object.
(see com.iplanet.am.sdk.AMObject
)locationDN
- distinguished name of deleted object.public void onBeforeUpdateValues(AMModel model, int objectType, AMObject object, java.util.Map attributeValues) throws AMConsoleException
AttributeValues
maps attribute name (String) to its values.
This allows you to do validation of attribute values and to alter them
accordingly or throw an exception to block the modification.onBeforeUpdateValues
in interface AMConsoleListener
model
- implementation class initiates this event.objectType
- type of object.
(see com.iplanet.am.sdk.AMObject
)object
- of which attributes are to be updated.attributeValues
- maps name of attribute (String) to its values
(Set)AMConsoleException
- to stop modification of attributes.public void onAfterUpdateValues(AMModel model, int objectType, AMObject object)
onAfterUpdateValues
in interface AMConsoleListener
model
- implementation class initiates this event.objectType
- - type of object.
(see com.iplanet.am.sdk.AMObject
)object
- updated object.public void onBeforeUpdateDefaultServiceValues(AMModel model, java.lang.String name, java.util.Map attributeValues) throws AMConsoleException
AttributeValues
maps attribute name (String)
to its values.onBeforeUpdateDefaultServiceValues
in interface AMConsoleListener
model
- implementation class initiates this event.name
- of service.attributeValues
- maps name of attribute (String) to its values
(Set)AMConsoleException
- will prevent updating of attributes.public void onAfterUpdateDefaultServiceValues(AMModel model, java.lang.String name)
AttributeValues
maps attribute name (String)
to its values.onAfterUpdateDefaultServiceValues
in interface AMConsoleListener
model
- implementation class initiates this event.name
- of service.public void onRetrieveAttributeValues(AMModel model, AMObject object, int action, int objectType, java.lang.String serviceName, SchemaType schemaType, java.util.Map attributeValues)
attributeValues
maps name of attribute (String) to its
values (Set). Alter this map to changes the values of attributes.onRetrieveAttributeValues
in interface AMConsoleListener
model
- implementation class initiates this event.object
- of which attribute is retrieved. object
is null when action
equals
MODE_CREATION
, or retrieve value for global service.action
- either MODE_CREATION
or
MODE_MODIFICATION
.objectType
- type of object.
(see com.iplanet.am.sdk.AMObject
)serviceName
- name of service.schemaType
- type of schema.attributeValues
- maps name of attribute (String) to its values
(Set)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |