Interface LocationModifier
- All Superinterfaces:
IntermediateStorageProvider
,Modifier<Location>
,UndeletableModifier<Location>
public interface LocationModifier
extends UndeletableModifier<Location>, IntermediateStorageProvider
- Since:
- 10.0.34
-
Method Summary
Modifier and TypeMethodDescriptionGet the current location description which is held in thisLocationModifier
.getName()
Get the current location name which is held in thisLocationModifier
.Get the current location timezone which is held in thisLocationModifier
.getUid()
Get the current location uid which is held in thisLocationModifier
.setDescription
(String description) Change the description of the associatedLocation
.Change the name of the associatedLocation
.setTimeZone
(String timeZone) Change the timezone of the associatedLocation
.setTimeZone
(TimeZone timeZone) Change the timezone of the associatedLocation
.Change the uid of the associatedLocation
.boolean
validateDescription
(String description) Validate the given description.boolean
validateName
(String name) Validate the given name.boolean
validateTimeZone
(String timeZone) Validate the given timezone.boolean
validateTimeZone
(TimeZone timeZone) Validate the given timezone.boolean
validateUid
(String uid) Validate the given uid.Methods inherited from interface com.novomind.ecom.api.iagent.provider.IntermediateStorageProvider
getIntermediateStorage
Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.Modifier
delete, get, write
Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.UndeletableModifier
undelete
-
Method Details
-
getName
String getName()Get the current location name which is held in thisLocationModifier
.- Returns:
- the name as String
- Since:
- 10.0.34
-
setName
Change the name of the associated
Location
.The change is applied after the
Modifier.write()
method is called.- Parameters:
name
- the new name as String- Returns:
- the
LocationModifier
- Throws:
ValidationException
- if the new name is invalid- Since:
- 10.0.34
-
validateName
Validate the given name.- Parameters:
name
- the name to validate as String- Returns:
- true if the name is valid
- Throws:
ValidationException
- if the name is invalid- Since:
- 10.0.34
-
getDescription
String getDescription()Get the current location description which is held in thisLocationModifier
.- Returns:
- the description as String
- Since:
- 10.0.34
-
setDescription
Change the description of the associated
Location
.The change is applied after the
Modifier.write()
method is called.- Parameters:
description
- the new description as String- Returns:
- the
LocationModifier
- Throws:
ValidationException
- if the new description is invalid- Since:
- 10.0.34
-
validateDescription
Validate the given description.- Parameters:
description
- the description to validate as String- Returns:
- true if the description is valid
- Throws:
ValidationException
- if the description is invalid- Since:
- 10.0.34
-
getUid
String getUid()Get the current location uid which is held in thisLocationModifier
.- Returns:
- the name as String
- Since:
- 10.0.34
-
setUid
Change the uid of the associated
Location
.The change is applied after the
Modifier.write()
method is called.- Parameters:
uid
- the new uid as String- Returns:
- the
LocationModifier
- Throws:
ValidationException
- if the new uid is invalid- Since:
- 10.0.34
-
validateUid
Validate the given uid.- Parameters:
uid
- the uid to validate as String- Returns:
- true if the uid is valid
- Throws:
ValidationException
- if the uid is invalid- Since:
- 10.0.34
-
getTimeZone
TimeZone getTimeZone()Get the current location timezone which is held in thisLocationModifier
.- Returns:
- the timezone
- Since:
- 10.0.34
-
setTimeZone
Change the timezone of the associated
Location
.The change is applied after the
Modifier.write()
method is called.- Parameters:
timeZone
- the new timezone- Returns:
- the
LocationModifier
- Throws:
ValidationException
- if the new uid is invalid- Since:
- 10.0.34
-
validateTimeZone
Validate the given timezone.- Parameters:
timeZone
- the timezone to validate- Returns:
- true if the timezone is valid
- Throws:
ValidationException
- if the timezone is invalid- Since:
- 10.0.34
-
setTimeZone
Change the timezone of the associated
Location
.The change is applied after the
Modifier.write()
method is called.- Parameters:
timeZone
- the new timezone- Returns:
- the
LocationModifier
- Throws:
ValidationException
- if the new uid is invalid- Since:
- 10.0.34
-
validateTimeZone
Validate the given timezone.- Parameters:
timeZone
- the timezone to validate- Returns:
- true if the timezone is valid
- Throws:
ValidationException
- if the timezone is invalid- Since:
- 10.0.34
-