Package com.sun.identity.sm
Class ServiceSchemaManagerImpl
- java.lang.Object
-
- com.sun.identity.sm.ServiceSchemaManagerImpl
-
- All Implemented Interfaces:
SMSObjectListener
,EventListener
public class ServiceSchemaManagerImpl extends Object implements SMSObjectListener
The classServiceSchemaManagerImpl
provides the internal implemation forServiceSchemaManager
. There should be only one instance ofServiceSchemaManagerImpl
per service name and version. This class implements all the "read" methods and would receive notification when schema changes.
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.sm.SMSObjectListener
ADD, DELETE, MODIFY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allObjectsChanged()
This callback notifies the listener that all object should be marked as "changed" or "dirty".boolean
equals(Object o)
protected void
finalize()
String
getName()
Returns the Service nameString
getResourceName()
The name to use in CREST representation.String
getVersion()
Returns the Service's versionint
hashCode()
boolean
isValid()
Returns if the object is still validvoid
objectChanged(String name, int type)
This callback method is called by the EventService when the Directory Server triggers a PersistentSearch notificationString
printListeners()
String
toString()
String
toXML(AMEncryption encryptObj)
void
update()
-
-
-
Method Detail
-
isValid
public boolean isValid() throws SMSException
Returns if the object is still valid- Returns:
- validity of this object
- Throws:
SMSException
-
getName
public String getName()
Returns the Service name
-
getVersion
public String getVersion()
Returns the Service's version
-
getResourceName
public String getResourceName()
The name to use in CREST representation.
-
objectChanged
public void objectChanged(String name, int type)
Description copied from interface:SMSObjectListener
This callback method is called by the EventService when the Directory Server triggers a PersistentSearch notification- Specified by:
objectChanged
in interfaceSMSObjectListener
-
allObjectsChanged
public void allObjectsChanged()
Description copied from interface:SMSObjectListener
This callback notifies the listener that all object should be marked as "changed" or "dirty". This callback is only used in the case when Event Service looses the directory connection and does not know what could have changed in the directory.- Specified by:
allObjectsChanged
in interfaceSMSObjectListener
-
finalize
protected void finalize() throws Throwable
-
update
public void update()
-
toXML
public String toXML(AMEncryption encryptObj) throws SMSException
- Throws:
SMSException
-
printListeners
public String printListeners()
-
-