Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
6f01b27b
Commit
6f01b27b
authored
Feb 15, 2016
by
Daniele Kruse
Browse files
More work on CLI, plus changed all ints to be uint64_t
parent
ff1db4d3
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
catalogue/Catalogue.hpp
View file @
6f01b27b
...
...
@@ -89,23 +89,23 @@ public:
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
AdminHost
>
getAdminHosts
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
=
0
;
virtual
void
modifyAdminHostComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
hostName
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createStorageClass
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
nbCopies
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createStorageClass
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
nbCopies
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
deleteStorageClass
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
)
=
0
;
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
StorageClass
>
getStorageClasses
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
=
0
;
virtual
void
modifyStorageClassNbCopies
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
nbCopies
)
=
0
;
virtual
void
modifyStorageClassNbCopies
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
nbCopies
)
=
0
;
virtual
void
modifyStorageClassComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createTapePool
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
nbPartialTapes
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createTapePool
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
nbPartialTapes
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
deleteTapePool
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
)
=
0
;
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
TapePool
>
getTapePools
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
=
0
;
virtual
void
modifyTapePoolNbPartialTapes
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
nbPartialTapes
)
=
0
;
virtual
void
modifyTapePoolNbPartialTapes
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
nbPartialTapes
)
=
0
;
virtual
void
modifyTapePoolComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
tapePoolName
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
deleteArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
)
=
0
;
virtual
void
createArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
tapePoolName
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
deleteArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
)
=
0
;
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
ArchiveRoute
>
getArchiveRoutes
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
=
0
;
virtual
void
modifyArchiveRouteTapePoolName
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
tapePoolName
)
=
0
;
virtual
void
modifyArchiveRouteComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
modifyArchiveRouteTapePoolName
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
tapePoolName
)
=
0
;
virtual
void
modifyArchiveRouteComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createLogicalLibrary
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
deleteLogicalLibrary
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
)
=
0
;
...
...
@@ -134,20 +134,20 @@ public:
virtual
void
modifyUserUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
group
,
const
std
::
string
&
userGroup
)
=
0
;
virtual
void
modifyUserComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
group
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
archivePriority
,
const
uint64_t
minArchiveFilesQueued
,
const
uint64_t
minArchiveBytesQueued
,
const
uint64_t
minArchiveRequestAge
,
const
uint
32
_t
retrievePriority
,
const
uint64_t
minRetrieveFilesQueued
,
const
uint64_t
minRetrieveBytesQueued
,
const
uint64_t
minRetrieveRequestAge
,
const
uint
1
6_t
maxDrivesAllowed
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
archivePriority
,
const
uint64_t
minArchiveFilesQueued
,
const
uint64_t
minArchiveBytesQueued
,
const
uint64_t
minArchiveRequestAge
,
const
uint
64
_t
retrievePriority
,
const
uint64_t
minRetrieveFilesQueued
,
const
uint64_t
minRetrieveBytesQueued
,
const
uint64_t
minRetrieveRequestAge
,
const
uint6
4
_t
maxDrivesAllowed
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
deleteUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
)
=
0
;
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
UserGroup
>
getUserGroups
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
=
0
;
virtual
void
modifyUserGroupArchivePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
archivePriority
)
=
0
;
virtual
void
modifyUserGroupArchivePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
archivePriority
)
=
0
;
virtual
void
modifyUserGroupArchiveMinFilesQueued
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minArchiveFilesQueued
)
=
0
;
virtual
void
modifyUserGroupArchiveMinBytesQueued
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minArchiveBytesQueued
)
=
0
;
virtual
void
modifyUserGroupArchiveMinRequestAge
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minArchiveRequestAge
)
=
0
;
virtual
void
modifyUserGroupRetrievePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
retrievePriority
)
=
0
;
virtual
void
modifyUserGroupRetrievePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
retrievePriority
)
=
0
;
virtual
void
modifyUserGroupRetrieveMinFilesQueued
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minRetrieveFilesQueued
)
=
0
;
virtual
void
modifyUserGroupRetrieveMinBytesQueued
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minRetrieveBytesQueued
)
=
0
;
virtual
void
modifyUserGroupRetrieveMinRequestAge
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minRetrieveRequestAge
)
=
0
;
virtual
void
modifyUserGroupMaxDrivesAllowed
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
maxDrivesAllowed
)
=
0
;
virtual
void
modifyUserGroupMaxDrivesAllowed
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
maxDrivesAllowed
)
=
0
;
virtual
void
modifyUserGroupComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
comment
)
=
0
;
virtual
void
createDedication
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
drivename
,
const
bool
readonly
,
const
bool
writeonly
,
const
std
::
string
&
userGroup
,
...
...
catalogue/MockCatalogue.cpp
View file @
6f01b27b
...
...
@@ -92,7 +92,7 @@ void cta::catalogue::MockCatalogue::modifyAdminHostComment(const cta::common::da
//------------------------------------------------------------------------------
// createStorageClass
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
createStorageClass
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
nbCopies
,
const
std
::
string
&
comment
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
createStorageClass
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
nbCopies
,
const
std
::
string
&
comment
)
{}
//------------------------------------------------------------------------------
// deleteStorageClass
...
...
@@ -107,7 +107,7 @@ std::list<cta::common::dataStructures::StorageClass> cta::catalogue::MockCatalog
//------------------------------------------------------------------------------
// modifyStorageClassNbCopies
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
modifyStorageClassNbCopies
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
nbCopies
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
modifyStorageClassNbCopies
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
nbCopies
)
{}
//------------------------------------------------------------------------------
// modifyStorageClassComment
...
...
@@ -117,7 +117,7 @@ void cta::catalogue::MockCatalogue::modifyStorageClassComment(const cta::common:
//------------------------------------------------------------------------------
// createTapePool
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
createTapePool
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
nbPartialTapes
,
const
std
::
string
&
comment
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
createTapePool
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
nbPartialTapes
,
const
std
::
string
&
comment
)
{}
//------------------------------------------------------------------------------
// deleteTapePool
...
...
@@ -132,7 +132,7 @@ std::list<cta::common::dataStructures::TapePool> cta::catalogue::MockCatalogue::
//------------------------------------------------------------------------------
// modifyTapePoolNbPartialTapes
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
modifyTapePoolNbPartialTapes
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
nbPartialTapes
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
modifyTapePoolNbPartialTapes
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
nbPartialTapes
)
{}
//------------------------------------------------------------------------------
// modifyTapePoolComment
...
...
@@ -142,12 +142,12 @@ void cta::catalogue::MockCatalogue::modifyTapePoolComment(const cta::common::dat
//------------------------------------------------------------------------------
// createArchiveRoute
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
createArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
tapePoolName
,
const
std
::
string
&
comment
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
createArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
tapePoolName
,
const
std
::
string
&
comment
)
{}
//------------------------------------------------------------------------------
// deleteArchiveRoute
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
deleteArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
deleteArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
)
{}
//------------------------------------------------------------------------------
// getArchiveRoutes
...
...
@@ -157,12 +157,12 @@ std::list<cta::common::dataStructures::ArchiveRoute> cta::catalogue::MockCatalog
//------------------------------------------------------------------------------
// modifyArchiveRouteTapePoolName
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
modifyArchiveRouteTapePoolName
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
tapePoolName
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
modifyArchiveRouteTapePoolName
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
tapePoolName
)
{}
//------------------------------------------------------------------------------
// modifyArchiveRouteComment
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
modifyArchiveRouteComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
comment
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
modifyArchiveRouteComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
comment
)
{}
//------------------------------------------------------------------------------
// createLogicalLibrary
...
...
@@ -275,9 +275,9 @@ void cta::catalogue::MockCatalogue::modifyUserComment(const cta::common::dataStr
//------------------------------------------------------------------------------
// createUserGroup
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
createUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
archivePriority
,
const
uint64_t
minArchiveFilesQueued
,
const
uint64_t
minArchiveBytesQueued
,
const
uint64_t
minArchiveRequestAge
,
const
uint
32
_t
retrievePriority
,
const
uint64_t
minRetrieveFilesQueued
,
const
uint64_t
minRetrieveBytesQueued
,
const
uint64_t
minRetrieveRequestAge
,
const
uint
1
6_t
maxDrivesAllowed
,
const
std
::
string
&
comment
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
createUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
archivePriority
,
const
uint64_t
minArchiveFilesQueued
,
const
uint64_t
minArchiveBytesQueued
,
const
uint64_t
minArchiveRequestAge
,
const
uint
64
_t
retrievePriority
,
const
uint64_t
minRetrieveFilesQueued
,
const
uint64_t
minRetrieveBytesQueued
,
const
uint64_t
minRetrieveRequestAge
,
const
uint6
4
_t
maxDrivesAllowed
,
const
std
::
string
&
comment
)
{}
//------------------------------------------------------------------------------
// deleteUserGroup
...
...
@@ -292,7 +292,7 @@ std::list<cta::common::dataStructures::UserGroup> cta::catalogue::MockCatalogue:
//------------------------------------------------------------------------------
// modifyUserGroupArchivePriority
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
modifyUserGroupArchivePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
archivePriority
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
modifyUserGroupArchivePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
archivePriority
)
{}
//------------------------------------------------------------------------------
// modifyUserGroupArchiveMinFilesQueued
...
...
@@ -312,7 +312,7 @@ void cta::catalogue::MockCatalogue::modifyUserGroupArchiveMinRequestAge(const ct
//------------------------------------------------------------------------------
// modifyUserGroupRetrievePriority
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
modifyUserGroupRetrievePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
retrievePriority
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
modifyUserGroupRetrievePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
retrievePriority
)
{}
//------------------------------------------------------------------------------
// modifyUserGroupRetrieveMinFilesQueued
...
...
@@ -332,7 +332,7 @@ void cta::catalogue::MockCatalogue::modifyUserGroupRetrieveMinRequestAge(const c
//------------------------------------------------------------------------------
// modifyUserGroupMaxDrivesAllowed
//------------------------------------------------------------------------------
void
cta
::
catalogue
::
MockCatalogue
::
modifyUserGroupMaxDrivesAllowed
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
maxDrivesAllowed
)
{}
void
cta
::
catalogue
::
MockCatalogue
::
modifyUserGroupMaxDrivesAllowed
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
maxDrivesAllowed
)
{}
//------------------------------------------------------------------------------
// modifyUserGroupComment
...
...
catalogue/MockCatalogue.hpp
View file @
6f01b27b
...
...
@@ -61,23 +61,23 @@ public:
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
AdminHost
>
getAdminHosts
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
;
virtual
void
modifyAdminHostComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
hostName
,
const
std
::
string
&
comment
);
virtual
void
createStorageClass
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
nbCopies
,
const
std
::
string
&
comment
);
virtual
void
createStorageClass
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
nbCopies
,
const
std
::
string
&
comment
);
virtual
void
deleteStorageClass
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
);
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
StorageClass
>
getStorageClasses
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
;
virtual
void
modifyStorageClassNbCopies
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
nbCopies
);
virtual
void
modifyStorageClassNbCopies
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
nbCopies
);
virtual
void
modifyStorageClassComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
comment
);
virtual
void
createTapePool
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
nbPartialTapes
,
const
std
::
string
&
comment
);
virtual
void
createTapePool
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
nbPartialTapes
,
const
std
::
string
&
comment
);
virtual
void
deleteTapePool
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
);
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
TapePool
>
getTapePools
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
;
virtual
void
modifyTapePoolNbPartialTapes
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
nbPartialTapes
);
virtual
void
modifyTapePoolNbPartialTapes
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
nbPartialTapes
);
virtual
void
modifyTapePoolComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
comment
);
virtual
void
createArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
tapePoolName
,
const
std
::
string
&
comment
);
virtual
void
deleteArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
);
virtual
void
createArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
tapePoolName
,
const
std
::
string
&
comment
);
virtual
void
deleteArchiveRoute
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
);
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
ArchiveRoute
>
getArchiveRoutes
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
;
virtual
void
modifyArchiveRouteTapePoolName
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
tapePoolName
);
virtual
void
modifyArchiveRouteComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint
1
6_t
copyNb
,
const
std
::
string
&
comment
);
virtual
void
modifyArchiveRouteTapePoolName
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
tapePoolName
);
virtual
void
modifyArchiveRouteComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
storageClassName
,
const
uint6
4
_t
copyNb
,
const
std
::
string
&
comment
);
virtual
void
createLogicalLibrary
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
comment
);
virtual
void
deleteLogicalLibrary
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
);
...
...
@@ -106,20 +106,20 @@ public:
virtual
void
modifyUserUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
group
,
const
std
::
string
&
userGroup
);
virtual
void
modifyUserComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
group
,
const
std
::
string
&
comment
);
virtual
void
createUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
archivePriority
,
const
uint64_t
minArchiveFilesQueued
,
const
uint64_t
minArchiveBytesQueued
,
const
uint64_t
minArchiveRequestAge
,
const
uint
32
_t
retrievePriority
,
const
uint64_t
minRetrieveFilesQueued
,
const
uint64_t
minRetrieveBytesQueued
,
const
uint64_t
minRetrieveRequestAge
,
const
uint
1
6_t
maxDrivesAllowed
,
const
std
::
string
&
comment
);
virtual
void
createUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
archivePriority
,
const
uint64_t
minArchiveFilesQueued
,
const
uint64_t
minArchiveBytesQueued
,
const
uint64_t
minArchiveRequestAge
,
const
uint
64
_t
retrievePriority
,
const
uint64_t
minRetrieveFilesQueued
,
const
uint64_t
minRetrieveBytesQueued
,
const
uint64_t
minRetrieveRequestAge
,
const
uint6
4
_t
maxDrivesAllowed
,
const
std
::
string
&
comment
);
virtual
void
deleteUserGroup
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
);
virtual
std
::
list
<
cta
::
common
::
dataStructures
::
UserGroup
>
getUserGroups
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
const
;
virtual
void
modifyUserGroupArchivePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
archivePriority
);
virtual
void
modifyUserGroupArchivePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
archivePriority
);
virtual
void
modifyUserGroupArchiveMinFilesQueued
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minArchiveFilesQueued
);
virtual
void
modifyUserGroupArchiveMinBytesQueued
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minArchiveBytesQueued
);
virtual
void
modifyUserGroupArchiveMinRequestAge
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minArchiveRequestAge
);
virtual
void
modifyUserGroupRetrievePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
32
_t
retrievePriority
);
virtual
void
modifyUserGroupRetrievePriority
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
64
_t
retrievePriority
);
virtual
void
modifyUserGroupRetrieveMinFilesQueued
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minRetrieveFilesQueued
);
virtual
void
modifyUserGroupRetrieveMinBytesQueued
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minRetrieveBytesQueued
);
virtual
void
modifyUserGroupRetrieveMinRequestAge
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint64_t
minRetrieveRequestAge
);
virtual
void
modifyUserGroupMaxDrivesAllowed
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint
1
6_t
maxDrivesAllowed
);
virtual
void
modifyUserGroupMaxDrivesAllowed
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
uint6
4
_t
maxDrivesAllowed
);
virtual
void
modifyUserGroupComment
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
name
,
const
std
::
string
&
comment
);
virtual
void
createDedication
(
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
,
const
std
::
string
&
drivename
,
const
bool
readonly
,
const
bool
writeonly
,
const
std
::
string
&
userGroup
,
...
...
common/dataStructures/ArchiveRoute.cpp
View file @
6f01b27b
...
...
@@ -70,7 +70,7 @@ std::string cta::common::dataStructures::ArchiveRoute::getComment() const {
//------------------------------------------------------------------------------
// setCopyNb
//------------------------------------------------------------------------------
void
cta
::
common
::
dataStructures
::
ArchiveRoute
::
setCopyNb
(
const
uint
32
_t
copyNb
)
{
void
cta
::
common
::
dataStructures
::
ArchiveRoute
::
setCopyNb
(
const
uint
64
_t
copyNb
)
{
m_copyNb
=
copyNb
;
m_copyNbSet
=
true
;
}
...
...
@@ -78,7 +78,7 @@ void cta::common::dataStructures::ArchiveRoute::setCopyNb(const uint32_t copyNb)
//------------------------------------------------------------------------------
// getCopyNb
//------------------------------------------------------------------------------
uint
32
_t
cta
::
common
::
dataStructures
::
ArchiveRoute
::
getCopyNb
()
const
{
uint
64
_t
cta
::
common
::
dataStructures
::
ArchiveRoute
::
getCopyNb
()
const
{
if
(
!
allFieldsSet
())
{
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" Error: not all fields of the ArchiveRoute have been set!"
);
}
...
...
common/dataStructures/ArchiveRoute.hpp
View file @
6f01b27b
...
...
@@ -46,8 +46,8 @@ public:
void
setComment
(
const
std
::
string
&
comment
);
std
::
string
getComment
()
const
;
void
setCopyNb
(
const
uint
32
_t
copyNb
);
uint
32
_t
getCopyNb
()
const
;
void
setCopyNb
(
const
uint
64
_t
copyNb
);
uint
64
_t
getCopyNb
()
const
;
void
setCreationLog
(
const
cta
::
common
::
dataStructures
::
EntryLog
&
creationLog
);
cta
::
common
::
dataStructures
::
EntryLog
getCreationLog
()
const
;
...
...
@@ -72,7 +72,7 @@ private:
std
::
string
m_comment
;
bool
m_commentSet
;
uint
32
_t
m_copyNb
;
uint
64
_t
m_copyNb
;
bool
m_copyNbSet
;
cta
::
common
::
dataStructures
::
EntryLog
m_creationLog
;
...
...
common/dataStructures/StorageClass.cpp
View file @
6f01b27b
...
...
@@ -122,7 +122,7 @@ std::string cta::common::dataStructures::StorageClass::getName() const {
//------------------------------------------------------------------------------
// setNbCopies
//------------------------------------------------------------------------------
void
cta
::
common
::
dataStructures
::
StorageClass
::
setNbCopies
(
const
uint
1
6_t
nbCopies
)
{
void
cta
::
common
::
dataStructures
::
StorageClass
::
setNbCopies
(
const
uint6
4
_t
nbCopies
)
{
m_nbCopies
=
nbCopies
;
m_nbCopiesSet
=
true
;
}
...
...
@@ -130,7 +130,7 @@ void cta::common::dataStructures::StorageClass::setNbCopies(const uint16_t nbCop
//------------------------------------------------------------------------------
// getNbCopies
//------------------------------------------------------------------------------
uint
1
6_t
cta
::
common
::
dataStructures
::
StorageClass
::
getNbCopies
()
const
{
uint6
4
_t
cta
::
common
::
dataStructures
::
StorageClass
::
getNbCopies
()
const
{
if
(
!
allFieldsSet
())
{
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" Error: not all fields of the StorageClass have been set!"
);
}
...
...
common/dataStructures/StorageClass.hpp
View file @
6f01b27b
...
...
@@ -55,8 +55,8 @@ public:
void
setName
(
const
std
::
string
&
name
);
std
::
string
getName
()
const
;
void
setNbCopies
(
const
uint
1
6_t
nbCopies
);
uint
1
6_t
getNbCopies
()
const
;
void
setNbCopies
(
const
uint6
4
_t
nbCopies
);
uint6
4
_t
getNbCopies
()
const
;
private:
...
...
@@ -78,7 +78,7 @@ private:
std
::
string
m_name
;
bool
m_nameSet
;
uint
1
6_t
m_nbCopies
;
uint6
4
_t
m_nbCopies
;
bool
m_nbCopiesSet
;
};
// class StorageClass
...
...
common/dataStructures/TapePool.cpp
View file @
6f01b27b
...
...
@@ -122,7 +122,7 @@ std::string cta::common::dataStructures::TapePool::getName() const {
//------------------------------------------------------------------------------
// setNbPartialTapes
//------------------------------------------------------------------------------
void
cta
::
common
::
dataStructures
::
TapePool
::
setNbPartialTapes
(
const
uint
32
_t
nbPartialTapes
)
{
void
cta
::
common
::
dataStructures
::
TapePool
::
setNbPartialTapes
(
const
uint
64
_t
nbPartialTapes
)
{
m_nbPartialTapes
=
nbPartialTapes
;
m_nbPartialTapesSet
=
true
;
}
...
...
@@ -130,7 +130,7 @@ void cta::common::dataStructures::TapePool::setNbPartialTapes(const uint32_t nbP
//------------------------------------------------------------------------------
// getNbPartialTapes
//------------------------------------------------------------------------------
uint
32
_t
cta
::
common
::
dataStructures
::
TapePool
::
getNbPartialTapes
()
const
{
uint
64
_t
cta
::
common
::
dataStructures
::
TapePool
::
getNbPartialTapes
()
const
{
if
(
!
allFieldsSet
())
{
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" Error: not all fields of the TapePool have been set!"
);
}
...
...
common/dataStructures/TapePool.hpp
View file @
6f01b27b
...
...
@@ -55,8 +55,8 @@ public:
void
setName
(
const
std
::
string
&
name
);
std
::
string
getName
()
const
;
void
setNbPartialTapes
(
const
uint
32
_t
nbPartialTapes
);
uint
32
_t
getNbPartialTapes
()
const
;
void
setNbPartialTapes
(
const
uint
64
_t
nbPartialTapes
);
uint
64
_t
getNbPartialTapes
()
const
;
private:
...
...
@@ -78,7 +78,7 @@ private:
std
::
string
m_name
;
bool
m_nameSet
;
uint
32
_t
m_nbPartialTapes
;
uint
64
_t
m_nbPartialTapes
;
bool
m_nbPartialTapesSet
;
};
// class TapePool
...
...
common/dataStructures/UserGroup.cpp
View file @
6f01b27b
...
...
@@ -120,7 +120,7 @@ uint64_t cta::common::dataStructures::UserGroup::getArchive_minRequestAge() cons
//------------------------------------------------------------------------------
// setArchive_priority
//------------------------------------------------------------------------------
void
cta
::
common
::
dataStructures
::
UserGroup
::
setArchive_priority
(
const
uint
32
_t
archive_priority
)
{
void
cta
::
common
::
dataStructures
::
UserGroup
::
setArchive_priority
(
const
uint
64
_t
archive_priority
)
{
m_archive_priority
=
archive_priority
;
m_archive_prioritySet
=
true
;
}
...
...
@@ -128,7 +128,7 @@ void cta::common::dataStructures::UserGroup::setArchive_priority(const uint32_t
//------------------------------------------------------------------------------
// getArchive_priority
//------------------------------------------------------------------------------
uint
32
_t
cta
::
common
::
dataStructures
::
UserGroup
::
getArchive_priority
()
const
{
uint
64
_t
cta
::
common
::
dataStructures
::
UserGroup
::
getArchive_priority
()
const
{
if
(
!
allFieldsSet
())
{
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" Error: not all fields of the UserGroup have been set!"
);
}
...
...
@@ -192,7 +192,7 @@ cta::common::dataStructures::EntryLog cta::common::dataStructures::UserGroup::ge
//------------------------------------------------------------------------------
// setMaxDrivesAllowed
//------------------------------------------------------------------------------
void
cta
::
common
::
dataStructures
::
UserGroup
::
setMaxDrivesAllowed
(
const
uint
1
6_t
maxDrivesAllowed
)
{
void
cta
::
common
::
dataStructures
::
UserGroup
::
setMaxDrivesAllowed
(
const
uint6
4
_t
maxDrivesAllowed
)
{
m_maxDrivesAllowed
=
maxDrivesAllowed
;
m_maxDrivesAllowedSet
=
true
;
}
...
...
@@ -200,7 +200,7 @@ void cta::common::dataStructures::UserGroup::setMaxDrivesAllowed(const uint16_t
//------------------------------------------------------------------------------
// getMaxDrivesAllowed
//------------------------------------------------------------------------------
uint
1
6_t
cta
::
common
::
dataStructures
::
UserGroup
::
getMaxDrivesAllowed
()
const
{
uint6
4
_t
cta
::
common
::
dataStructures
::
UserGroup
::
getMaxDrivesAllowed
()
const
{
if
(
!
allFieldsSet
())
{
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" Error: not all fields of the UserGroup have been set!"
);
}
...
...
@@ -282,7 +282,7 @@ uint64_t cta::common::dataStructures::UserGroup::getRetrieve_minRequestAge() con
//------------------------------------------------------------------------------
// setRetrieve_priority
//------------------------------------------------------------------------------
void
cta
::
common
::
dataStructures
::
UserGroup
::
setRetrieve_priority
(
const
uint
32
_t
retrieve_priority
)
{
void
cta
::
common
::
dataStructures
::
UserGroup
::
setRetrieve_priority
(
const
uint
64
_t
retrieve_priority
)
{
m_retrieve_priority
=
retrieve_priority
;
m_retrieve_prioritySet
=
true
;
}
...
...
@@ -290,7 +290,7 @@ void cta::common::dataStructures::UserGroup::setRetrieve_priority(const uint32_t
//------------------------------------------------------------------------------
// getRetrieve_priority
//------------------------------------------------------------------------------
uint
32
_t
cta
::
common
::
dataStructures
::
UserGroup
::
getRetrieve_priority
()
const
{
uint
64
_t
cta
::
common
::
dataStructures
::
UserGroup
::
getRetrieve_priority
()
const
{
if
(
!
allFieldsSet
())
{
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" Error: not all fields of the UserGroup have been set!"
);
}
...
...
common/dataStructures/UserGroup.hpp
View file @
6f01b27b
...
...
@@ -52,8 +52,8 @@ public:
void
setArchive_minRequestAge
(
const
uint64_t
archive_minRequestAge
);
uint64_t
getArchive_minRequestAge
()
const
;
void
setArchive_priority
(
const
uint
32
_t
archive_priority
);
uint
32
_t
getArchive_priority
()
const
;
void
setArchive_priority
(
const
uint
64
_t
archive_priority
);
uint
64
_t
getArchive_priority
()
const
;
void
setComment
(
const
std
::
string
&
comment
);
std
::
string
getComment
()
const
;
...
...
@@ -64,8 +64,8 @@ public:
void
setLastModificationLog
(
const
cta
::
common
::
dataStructures
::
EntryLog
&
lastModificationLog
);
cta
::
common
::
dataStructures
::
EntryLog
getLastModificationLog
()
const
;
void
setMaxDrivesAllowed
(
const
uint
1
6_t
maxDrivesAllowed
);
uint
1
6_t
getMaxDrivesAllowed
()
const
;
void
setMaxDrivesAllowed
(
const
uint6
4
_t
maxDrivesAllowed
);
uint6
4
_t
getMaxDrivesAllowed
()
const
;
void
setName
(
const
std
::
string
&
name
);
std
::
string
getName
()
const
;
...
...
@@ -79,8 +79,8 @@ public:
void
setRetrieve_minRequestAge
(
const
uint64_t
retrieve_minRequestAge
);
uint64_t
getRetrieve_minRequestAge
()
const
;
void
setRetrieve_priority
(
const
uint
32
_t
retrieve_priority
);
uint
32
_t
getRetrieve_priority
()
const
;
void
setRetrieve_priority
(
const
uint
64
_t
retrieve_priority
);
uint
64
_t
getRetrieve_priority
()
const
;
private:
...
...
@@ -99,7 +99,7 @@ private:
uint64_t
m_archive_minRequestAge
;
bool
m_archive_minRequestAgeSet
;
uint
32
_t
m_archive_priority
;
uint
64
_t
m_archive_priority
;
bool
m_archive_prioritySet
;
std
::
string
m_comment
;
...
...
@@ -111,7 +111,7 @@ private:
cta
::
common
::
dataStructures
::
EntryLog
m_lastModificationLog
;
bool
m_lastModificationLogSet
;
uint
1
6_t
m_maxDrivesAllowed
;
uint6
4
_t
m_maxDrivesAllowed
;
bool
m_maxDrivesAllowedSet
;
std
::
string
m_name
;
...
...
@@ -126,7 +126,7 @@ private:
uint64_t
m_retrieve_minRequestAge
;
bool
m_retrieve_minRequestAgeSet
;
uint
32
_t
m_retrieve_priority
;
uint
64
_t
m_retrieve_priority
;
bool
m_retrieve_prioritySet
;
};
// class UserGroup
...
...
common/dataStructures/UserIdentity.cpp
View file @
6f01b27b
...
...
@@ -44,7 +44,7 @@ bool cta::common::dataStructures::UserIdentity::allFieldsSet() const {
//------------------------------------------------------------------------------
// setGid
//------------------------------------------------------------------------------
void
cta
::
common
::
dataStructures
::
UserIdentity
::
setGid
(
const
uint
32
_t
gid
)
{
void
cta
::
common
::
dataStructures
::
UserIdentity
::
setGid
(
const
uint
64
_t
gid
)
{
m_gid
=
gid
;
m_gidSet
=
true
;
}
...
...
@@ -52,7 +52,7 @@ void cta::common::dataStructures::UserIdentity::setGid(const uint32_t gid) {
//------------------------------------------------------------------------------
// getGid
//------------------------------------------------------------------------------
uint
32
_t
cta
::
common
::
dataStructures
::
UserIdentity
::
getGid
()
const
{
uint
64
_t
cta
::
common
::
dataStructures
::
UserIdentity
::
getGid
()
const
{
if
(
!
allFieldsSet
())
{
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" Error: not all fields of the UserIdentity have been set!"
);
}
...
...
@@ -62,7 +62,7 @@ uint32_t cta::common::dataStructures::UserIdentity::getGid() const {
//------------------------------------------------------------------------------
// setUid
//------------------------------------------------------------------------------
void
cta
::
common
::
dataStructures
::
UserIdentity
::
setUid
(
const
uint
32
_t
uid
)
{
void
cta
::
common
::
dataStructures
::
UserIdentity
::
setUid
(
const
uint
64
_t
uid
)
{
m_uid
=
uid
;
m_uidSet
=
true
;
}
...
...
@@ -70,7 +70,7 @@ void cta::common::dataStructures::UserIdentity::setUid(const uint32_t uid) {
//------------------------------------------------------------------------------
// getUid
//------------------------------------------------------------------------------
uint
32
_t
cta
::
common
::
dataStructures
::
UserIdentity
::
getUid
()
const
{
uint
64
_t
cta
::
common
::
dataStructures
::
UserIdentity
::
getUid
()
const
{
if
(
!
allFieldsSet
())
{
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
" Error: not all fields of the UserIdentity have been set!"
);
}
...
...
common/dataStructures/UserIdentity.hpp
View file @
6f01b27b
...
...
@@ -42,11 +42,11 @@ public:
*/
~
UserIdentity
()
throw
();
void
setGid
(
const
uint
32
_t
gid
);
uint
32
_t
getGid
()
const
;
void
setGid
(
const
uint
64
_t
gid
);
uint
64
_t
getGid
()
const
;
void
setUid
(
const
uint
32
_t
uid
);
uint
32
_t
getUid
()
const
;
void
setUid
(
const
uint
64
_t
uid
);
uint
64
_t
getUid
()
const
;
private:
...
...
@@ -56,10 +56,10 @@ private:
*/
bool
allFieldsSet
()
const
;
uint
32
_t
m_gid
;
uint
64
_t
m_gid
;
bool
m_gidSet
;
uint
32
_t
m_uid
;
uint
64
_t
m_uid
;
bool
m_uidSet
;
};
// class UserIdentity
...
...
doc/4_5_Scheduler_Interface.txt
View file @
6f01b27b
...
...
@@ -99,24 +99,24 @@ virtual void deleteAdminHost
virtual std::list<AdminHost> getAdminHosts (const SecurityIdentity &requester) const;
virtual void modifyAdminHostComment (const SecurityIdentity &requester, const std::string &hostName, const std::string &comment);
virtual void createStorageClass (const SecurityIdentity &requester, const std::string &name, const uint
1
6_t nbCopies, const std::string &comment);
virtual void createStorageClass (const SecurityIdentity &requester, const std::string &name, const uint6
4
_t nbCopies, const std::string &comment);
virtual void deleteStorageClass (const SecurityIdentity &requester, const std::string &name);
virtual std::list<StorageClass> getStorageClasses (const SecurityIdentity &requester) const;
virtual void modifyStorageClassNbCopies (const SecurityIdentity &requester, const std::string &name, const uint
1
6_t nbCopies);
virtual void modifyStorageClassNbCopies (const SecurityIdentity &requester, const std::string &name, const uint6
4
_t nbCopies);
virtual void modifyStorageClassComment (const SecurityIdentity &requester, const std::string &name, const std::string &comment);
virtual void createTapePool (const SecurityIdentity &requester, const std::string &name, const uint
32
_t nbPartialTapes, const std::string &comment);
virtual void createTapePool (const SecurityIdentity &requester, const std::string &name, const uint
64
_t nbPartialTapes, const std::string &comment);
virtual void deleteTapePool (const SecurityIdentity &requester, const std::string &name);
virtual std::list<TapePool> getTapePools (const SecurityIdentity &requester) const;
virtual void modifyTapePoolNbPartialTapes (const SecurityIdentity &requester, const std::string &name, const uint
32
_t nbPartialTapes);
virtual void modifyTapePoolNbPartialTapes (const SecurityIdentity &requester, const std::string &name, const uint
64
_t nbPartialTapes);
virtual void modifyTapePoolComment (const SecurityIdentity &requester, const std::string &name, const std::string &comment);
virtual void createArchiveRoute (const SecurityIdentity &requester, const std::string &storageClassName, const uint
1
6_t copyNb, const std::string &tapePoolName,
virtual void createArchiveRoute (const SecurityIdentity &requester, const std::string &storageClassName, const uint6
4
_t copyNb, const std::string &tapePoolName,
const std::string &comment);
virtual void deleteArchiveRoute (const SecurityIdentity &requester, const std::string &storageClassName, const uint
1
6_t copyNb);
virtual void deleteArchiveRoute (const SecurityIdentity &requester, const std::string &storageClassName, const uint6
4
_t copyNb);
virtual std::list<ArchiveRoute> getArchiveRoutes (const SecurityIdentity &requester) const;
virtual void modifyArchiveRouteTapePoolName (const SecurityIdentity &requester, const std::string &storageClassName, const uint
1
6_t copyNb, const std::string &tapePoolName);
virtual void modifyArchiveRouteComment (const SecurityIdentity &requester, const std::string &storageClassName, const uint
1
6_t copyNb, const std::string &comment);
virtual void modifyArchiveRouteTapePoolName (const SecurityIdentity &requester, const std::string &storageClassName, const uint6
4
_t copyNb, const std::string &tapePoolName);
virtual void modifyArchiveRouteComment (const SecurityIdentity &requester, const std::string &storageClassName, const uint6
4
_t copyNb, const std::string &comment);
virtual void createLogicalLibrary (const SecurityIdentity &requester, const std::string &name, const std::string &comment);
virtual void deleteLogicalLibrary (const SecurityIdentity &requester, const std::string &name);
...
...
@@ -145,20 +145,20 @@ virtual std::list<User> getUsers
virtual void modifyUserUserGroup (const SecurityIdentity &requester, const std::string &name, const std::string &group, const std::string &userGroup);
virtual void modifyUserComment (const SecurityIdentity &requester, const std::string &name, const std::string &group, const std::string &comment);
virtual void createUserGroup (const SecurityIdentity &requester, const std::string &name, const uint
32
_t archivePriority, const uint64_t minArchiveFilesQueued,