Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F8922353
single-specification-subject.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
771 B
Referenced Files
None
Subscribers
None
single-specification-subject.ts
View Options
import
App
from
"../../app/app"
;
import
{
LeafSubject
}
from
"../subject"
;
import
*
as
Errors
from
"../../response/errors"
;
import
Context
from
"../../context"
;
import
{
ShowActionName
}
from
"../../action"
;
export
default
class
SingleSpecificationSubject
extends
LeafSubject
{
collection_name
:
string
;
constructor
(
app
:
App
,
collection_name
:
string
)
{
super
(
app
);
this
.
collection_name
=
collection_name
;
}
getName
()
{
return
"specifications"
;
}
async
performAction
(
_
:
Context
,
action_name
:
ShowActionName
,
__
:
any
)
{
if
(
action_name
!==
"show"
)
{
throw
new
Errors
.
BadSubjectAction
(
`Unknown action for SingleSpecificationsSubject: '
${
action_name
}
'`
);
}
return
this
.
app
.
collections
[
this
.
collection_name
].
getSpecification
(
false
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Sep 20, 14:31 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
949278
Default Alt Text
single-specification-subject.ts (771 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment