Interface WebappStructure.RegistrationCallback
-
- Enclosing class:
- WebappStructure
public static interface WebappStructure.RegistrationCallbackCallback interface to handle events related to filepath registration in the webapp.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidalreadyRegistered(java.lang.String ownerId, java.lang.String targetFilename)Called if thetargetFilenamefor the specifiedownerIdhas already been registered.voidrefused(java.lang.String ownerId, java.lang.String targetFilename, java.lang.String actualOwnerId)Called if the registration of thetargetFilenamefor the specifiedownerIdhas been refused since the path already belongs to theactualOwnerId.voidregistered(java.lang.String ownerId, java.lang.String targetFilename)Called if thetargetFilenamefor the specifiedownerIdhas been registered successfully.voidsuperseded(java.lang.String ownerId, java.lang.String targetFilename, java.lang.String deprecatedOwnerId)Called if thetargetFilenamefor the specifiedownerIdhas been registered successfully by superseding adeprecatedOwnerId, that is the previous owner of the file.voidsupersededUnknownOwner(java.lang.String ownerId, java.lang.String targetFilename, java.lang.String unknownOwnerId)Called if thetargetFilenamefor the specifiedownerIdhas been registered successfully by superseding aunknownOwnerId, that is an owner that does not exist anymore in the current project.
-
-
-
Method Detail
-
registered
void registered(java.lang.String ownerId, java.lang.String targetFilename) throws java.io.IOExceptionCalled if thetargetFilenamefor the specifiedownerIdhas been registered successfully. This means that thetargetFilenamewas unknown and has been registered successfully.- Parameters:
ownerId- the ownerIdtargetFilename- the relative path according to the root of the webapp- Throws:
java.io.IOException- if an error occurred while handling this event
-
alreadyRegistered
void alreadyRegistered(java.lang.String ownerId, java.lang.String targetFilename) throws java.io.IOExceptionCalled if thetargetFilenamefor the specifiedownerIdhas already been registered. This means that thetargetFilenamewas known and belongs to the specified owner.- Parameters:
ownerId- the ownerIdtargetFilename- the relative path according to the root of the webapp- Throws:
java.io.IOException- if an error occurred while handling this event
-
refused
void refused(java.lang.String ownerId, java.lang.String targetFilename, java.lang.String actualOwnerId) throws java.io.IOExceptionCalled if the registration of the
This means that thetargetFilenamefor the specifiedownerIdhas been refused since the path already belongs to theactualOwnerId.targetFilenamewas known and does not belong to the specified owner.- Parameters:
ownerId- the ownerIdtargetFilename- the relative path according to the root of the webappactualOwnerId- the actual owner- Throws:
java.io.IOException- if an error occurred while handling this event
-
superseded
void superseded(java.lang.String ownerId, java.lang.String targetFilename, java.lang.String deprecatedOwnerId) throws java.io.IOExceptionCalled if thetargetFilenamefor the specifiedownerIdhas been registered successfully by superseding adeprecatedOwnerId, that is the previous owner of the file. This means that thetargetFilenamewas known but for another owner. This usually happens after a project's configuration change. As a result, the file has been registered successfully to the new owner.- Parameters:
ownerId- the ownerIdtargetFilename- the relative path according to the root of the webappdeprecatedOwnerId- the previous owner that does not exist anymore- Throws:
java.io.IOException- if an error occurred while handling this event
-
supersededUnknownOwner
void supersededUnknownOwner(java.lang.String ownerId, java.lang.String targetFilename, java.lang.String unknownOwnerId) throws java.io.IOExceptionCalled if thetargetFilenamefor the specifiedownerIdhas been registered successfully by superseding aunknownOwnerId, that is an owner that does not exist anymore in the current project. This means that thetargetFilenamewas known but for an owner that does not exist anymore. Hence the file has been registered successfully to the new owner.- Parameters:
ownerId- the ownerIdtargetFilename- the relative path according to the root of the webappunknownOwnerId- the previous owner that does not exist anymore- Throws:
java.io.IOException- if an error occurred while handling this event
-
-