Package org.ametys.web.alias
Interface Alias
- 
- All Known Implementing Classes:
 DefaultAlias
public interface Alias
This interface represents a alias 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAlias.TargetTypeType of a target. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DategetCreationDate()Get the creation dateDategetExpirationDate()Get the expiration dateStringgetTarget()Get the target URLAlias.TargetTypegetType()Retrieves the target type.StringgetUrl()Get the origin URLvoidremoveExpirationDate()Remove the expiration datevoidsetCreationDate(Date date)Set the creation datevoidsetExpirationDate(Date date)Set the expiration datevoidsetTarget(String url)Set the target URLvoidsetType(Alias.TargetType type)Set the type.voidsetUrl(String url)Set the origin URL 
 - 
 
- 
- 
Method Detail
- 
getUrl
String getUrl() throws AmetysRepositoryException
Get the origin URL- Returns:
 - the origin URL
 - Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
setUrl
void setUrl(String url) throws AmetysRepositoryException
Set the origin URL- Parameters:
 url- the origin URL- Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
getTarget
String getTarget() throws AmetysRepositoryException
Get the target URL- Returns:
 - the target URL
 - Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
setTarget
void setTarget(String url) throws AmetysRepositoryException
Set the target URL- Parameters:
 url- the target URL- Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
getExpirationDate
Date getExpirationDate() throws AmetysRepositoryException
Get the expiration date- Returns:
 - the expiration date
 - Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
setExpirationDate
void setExpirationDate(Date date) throws AmetysRepositoryException
Set the expiration date- Parameters:
 date- the expiration date- Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
removeExpirationDate
void removeExpirationDate() throws AmetysRepositoryException
Remove the expiration date- Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
getType
Alias.TargetType getType() throws AmetysRepositoryException
Retrieves the target type.- Returns:
 - the type.
 - Throws:
 AmetysRepositoryException- if an error occurs.- See Also:
 Alias.TargetType
 
- 
setType
void setType(Alias.TargetType type) throws AmetysRepositoryException
Set the type.- Parameters:
 type- the type.- Throws:
 AmetysRepositoryException- if an error occurs.- See Also:
 Alias.TargetType
 
- 
getCreationDate
Date getCreationDate() throws AmetysRepositoryException
Get the creation date- Returns:
 - the creation date
 - Throws:
 AmetysRepositoryException- if an error occurs.
 
- 
setCreationDate
void setCreationDate(Date date) throws AmetysRepositoryException
Set the creation date- Parameters:
 date- the date to set- Throws:
 AmetysRepositoryException- if an error occurs.
 
 - 
 
 -