public interface ServiceDef
Service
class should have public.Modifier and Type | Method and Description |
---|---|
boolean |
canAccess(java.lang.String thePassword)
Return true if the wrapped object can be accessed by the password.
|
boolean |
canAccessTemp(java.lang.String thePassword)
Return true if the password allows the calling component
to access this component by a temp password.
|
java.lang.String |
getServiceType()
Get the service type.
|
java.lang.String |
getUUID()
Get the unique service ID.
|
boolean |
isAdminKey(java.lang.String theAdminKey)
Return true if the key passed in is this service's admin key.
|
void |
setJarFile(java.util.ArrayList<java.lang.String> theJarFile)
Set the list of jar files required to load the service,
but only if the existing list is null, otherwise it is not changed.
|
void |
setServiceType(java.lang.String thisServiceType)
Set the service type value, but only if it is null, otherwise it is not changed.
|
void |
setUUID(java.lang.String thisUUID)
Set the ID value, but only if it is null, otherwise it is not changed.
|
void setUUID(java.lang.String thisUUID)
thisUUID
- the ID.java.lang.String getUUID()
void setServiceType(java.lang.String thisServiceType)
thisServiceType
- the service type.java.lang.String getServiceType()
void setJarFile(java.util.ArrayList<java.lang.String> theJarFile)
theJarFile
- the jar file list. Values are jar paths of type String.boolean canAccess(java.lang.String thePassword)
Service
then its canAccess
method is called,
otherwise true is automatically returned. Password protection is assumed for the
licas system only. Any wrapped object can still implement a different form of
password protection.thePassword
- the password to use.boolean canAccessTemp(java.lang.String thePassword)
thePassword
- the password to use.boolean isAdminKey(java.lang.String theAdminKey)
theAdminKey
- the key to check.