public static interface WebappStructure.RegistrationCallback
Modifier and Type | Method and Description |
---|---|
void |
alreadyRegistered(String ownerId,
String targetFilename)
Called if the
targetFilename for the specified ownerId has already been registered. |
void |
refused(String ownerId,
String targetFilename,
String actualOwnerId)
Called if the registration of the
targetFilename for the specified ownerId has been refused
since the path already belongs to the actualOwnerId . |
void |
registered(String ownerId,
String targetFilename)
Called if the
targetFilename for the specified ownerId has been registered successfully. |
void |
superseded(String ownerId,
String targetFilename,
String deprecatedOwnerId)
Called if the
targetFilename for the specified ownerId has been registered successfully by
superseding a deprecatedOwnerId , that is the previous owner of the file. |
void |
supersededUnknownOwner(String ownerId,
String targetFilename,
String unknownOwnerId)
Called if the
targetFilename for the specified ownerId has been registered successfully by
superseding a unknownOwnerId , that is an owner that does not exist anymore in the current project. |
void registered(String ownerId, String targetFilename) throws IOException
targetFilename
for the specified ownerId
has been registered successfully.
This means that the targetFilename
was unknown and has been registered successfully.ownerId
- the ownerIdtargetFilename
- the relative path according to the root of the webappIOException
- if an error occurred while handling this eventvoid alreadyRegistered(String ownerId, String targetFilename) throws IOException
targetFilename
for the specified ownerId
has already been registered.
This means that the targetFilename
was known and belongs to the specified owner.ownerId
- the ownerIdtargetFilename
- the relative path according to the root of the webappIOException
- if an error occurred while handling this eventvoid refused(String ownerId, String targetFilename, String actualOwnerId) throws IOException
Called if the registration of the targetFilename
for the specified ownerId
has been refused
since the path already belongs to the actualOwnerId
.
targetFilename
was known and does not belong to the specified owner.ownerId
- the ownerIdtargetFilename
- the relative path according to the root of the webappactualOwnerId
- the actual ownerIOException
- if an error occurred while handling this eventvoid superseded(String ownerId, String targetFilename, String deprecatedOwnerId) throws IOException
targetFilename
for the specified ownerId
has been registered successfully by
superseding a deprecatedOwnerId
, that is the previous owner of the file.
This means that the targetFilename
was 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.ownerId
- the ownerIdtargetFilename
- the relative path according to the root of the webappdeprecatedOwnerId
- the previous owner that does not exist anymoreIOException
- if an error occurred while handling this eventvoid supersededUnknownOwner(String ownerId, String targetFilename, String unknownOwnerId) throws IOException
targetFilename
for the specified ownerId
has been registered successfully by
superseding a unknownOwnerId
, that is an owner that does not exist anymore in the current project.
This means that the targetFilename
was known but for an owner that does not exist anymore. Hence the
file has been registered successfully to the new owner.ownerId
- the ownerIdtargetFilename
- the relative path according to the root of the webappunknownOwnerId
- the previous owner that does not exist anymoreIOException
- if an error occurred while handling this eventCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.