public class CobblerSnippetLister extends BaseManager
Constructor and Description |
---|
CobblerSnippetLister()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
static CobblerSnippetLister |
getInstance()
Get the instance of the CobblerSnippetLister
|
java.util.List<CobblerSnippet> |
list(User user)
Returns a list of snippets accessible to this user
|
java.util.List<CobblerSnippet> |
listCustom(User user)
Returns a list of custom snippets accessible to this user
i.e ones in /var/lib/cobbler/snippets/spacewalk
|
java.util.List<CobblerSnippet> |
listDefault(User user)
Returns a list of default snippets accessible to this user
i.e ones in /var/lib/cobbler/snippets minus spacewalk
|
makeDataResult, makeDataResult, makeDataResult, makeDataResult, makeDataResultNoPagination, makeDataResultNoPagination, processListControl, processPageControl
public static CobblerSnippetLister getInstance()
public java.util.List<CobblerSnippet> listDefault(User user)
user
- the user has to be atleast a
config admin to be able to access snippets.public java.util.List<CobblerSnippet> listCustom(User user)
user
- the user has to be atleast a
config admin to be able to access snippets.public java.util.List<CobblerSnippet> list(User user)
user
- the user has to be atleast a
config admin to be able to access snippets.