Package org.ivoa.dm.registry.voresource
Class SecurityMethod
java.lang.Object
org.ivoa.dm.registry.voresource.SecurityMethod
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VOResource:SecurityMethod",
role=objectType)
public class SecurityMethod
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a description of a security mechanism.
This type only allows one to refer to the mechanism via a
URI. Derived types would allow for more metadata.
objectType: SecurityMethod
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SecurityMethod, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SecurityMethodSecurityMethod(String standardID) full parameter constructor.SecurityMethod(SecurityMethod other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityMethodcreate a SecurityMethod in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns standardID Attribute.voidsetStandardID(String pStandardID) Set standardID Attribute.voidupdateUsing(SecurityMethod other) Update this object with the content of the given object.withStandardID(String pStandardID) fluent setter for standardID Attribute.
-
Field Details
-
_id
inserted database key -
standardID
@VoDml(id="VOResource:SecurityMethod.standardID", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String standardIDA URI identifier for a standard security mechanism. This provides a unique way to refer to a security specification standard. The use of an IVOA identifier here implies that a VOResource description of the standard is registered and accessible. : Attribute standardID : multiplicity 1
-
-
Constructor Details
-
SecurityMethod
public SecurityMethod()Creates a new SecurityMethod -
SecurityMethod
full parameter constructor.- Parameters:
standardID- A URI identifier for a standard security mechanism. This provides a unique way to refer to a security specification standard. The use of an IVOA identifier here implies that a VOResource description of the standard is registered and accessible.
-
SecurityMethod
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getStandardID
Returns standardID Attribute.- Returns:
- standardID Attribute
-
setStandardID
Set standardID Attribute.- Parameters:
pStandardID- value to set
-
withStandardID
fluent setter for standardID Attribute.- Parameters:
pStandardID- value to set- Returns:
- SecurityMethod
-
createSecurityMethod
create a SecurityMethod in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-