Package ch.tocco.nice2.dms.impl.uri
Class AdminUriImpl
-
Field Summary
Fields inherited from class ch.tocco.nice2.dms.impl.uri.AbstractUri
uri
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionChecks the given URi whether it complies with the ADMIN-URI schema.boolean
static AdminUri
fromString
(String uri) Create an AdminUri from string.getHash()
getName()
getPk()
int
hashCode()
toString()
withFragment
(String fragment) withQueryAndFragment
(String query, String fragment) Methods inherited from class ch.tocco.nice2.dms.impl.uri.AbstractUri
checkMatches, toURI, withFragment, withQuery, withQueryAndFragment
-
Constructor Details
-
AdminUriImpl
-
AdminUriImpl
-
-
Method Details
-
getHash
-
getPk
-
getName
-
checkUri
Checks the given URi whether it complies with the ADMIN-URI schema. If it is considered to be an admin uri,Optional.empty()
is returned, otherwise the error message. -
fromString
Create an AdminUri from string. The given URI must match the pattern /[hash]/[pk]/[name].- Parameters:
uri
- The URI to create the AdminUri for.- Returns:
- the created AdminUri.
- Throws:
IllegalArgumentException
- if the URI doesn't match the pattern.
-
withQuery
-
withFragment
- Specified by:
withFragment
in interfaceNiceUri<AdminUri>
-
withQueryAndFragment
- Specified by:
withQueryAndFragment
in interfaceNiceUri<AdminUri>
-
toString
-
equals
-
hashCode
public int hashCode()
-