Package org.ametys.web.alias
Interface Alias
- All Known Implementing Classes:
DefaultAlias
public interface Alias
This interface represents a alias
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the creation dateGet the expiration dateGet the target URLgetType()
Retrieves the target type.getUrl()
Get the origin URLvoid
Remove the expiration datevoid
setCreationDate
(Date date) Set the creation datevoid
setExpirationDate
(Date date) Set the expiration datevoid
Set the target URLvoid
setType
(Alias.TargetType type) Set the type.void
Set the origin URL
-
Method Details
-
getUrl
Get the origin URL- Returns:
- the origin URL
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setUrl
Set the origin URL- Parameters:
url
- the origin URL- Throws:
AmetysRepositoryException
- if an error occurs.
-
getTarget
Get the target URL- Returns:
- the target URL
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setTarget
Set the target URL- Parameters:
url
- the target URL- Throws:
AmetysRepositoryException
- if an error occurs.
-
getExpirationDate
Get the expiration date- Returns:
- the expiration date
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setExpirationDate
Set the expiration date- Parameters:
date
- the expiration date- Throws:
AmetysRepositoryException
- if an error occurs.
-
removeExpirationDate
Remove the expiration date- Throws:
AmetysRepositoryException
- if an error occurs.
-
getType
Retrieves the target type.- Returns:
- the type.
- Throws:
AmetysRepositoryException
- if an error occurs.- See Also:
-
setType
Set the type.- Parameters:
type
- the type.- Throws:
AmetysRepositoryException
- if an error occurs.- See Also:
-
getCreationDate
Get the creation date- Returns:
- the creation date
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setCreationDate
Set the creation date- Parameters:
date
- the date to set- Throws:
AmetysRepositoryException
- if an error occurs.
-