Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sv translation
languageja

管理関数


関数

説明

Workspace createDomain(string name, string description)指定された名前と説明で新しいドメインを作成します。
Workspace createDomainFromTemplate(string domain, string name, string description)指定された名前と説明で新しいドメインを作成します。
void sendEmail(string recepient, string subject, string templateContent, map templateParams, string locale, MessageHolder messagesHolder)1つの受信者にメールを送信します。
void editDoman(Workspace workspaceObj, string name, string description)提供されたドメインの名前と説明を編集します。
void deactivateDomain(Workspace workspaceObj)提供されたドメインを無効にします。
void addAdminToDomain(Workspace workspaceObj, userObj user)ドメインにユーザーを割り当て、彼に管理者の役割を与えます。
User[] listUsersInDomain(Workspace workspaceObj)提供されたドメイン内のユーザーのリストを返します。
User[] listUsersByRoleInDomain(role, workspaceObj)指定されたロールを持つドメイン内のユーザーのリストを返します。
User[] listUsersByGroupInDomain(group, workspaceObj)指定されたグループから提供されたドメイン内のユーザーのリストを返します。ドメインは%を使用してフィルタリングできます。
User[] listUsersById(ids[])指定されたIDリストからユーザーのリストを返します。
User[] listUsersInGroup(groupName, workspaceObj)提供されたドメイン内の指定されたグループからユーザーのリストを返します。
User[] listUsersWithoutGroup()任意のグループに割り当てられていない現在のドメイン内のユーザーのリストを返します。
User[] listUsersWithoutGroup(workspaceObj)任意のグループに割り当てられていない指定されたドメイン内のユーザーのリストを返します。
User[] listUsersWithoutGroup(workspaceObj, excludeAdmins)任意のグループに割り当てられていない指定されたドメイン内のユーザーのリストを返し、trueが指定された場合は管理者を除外します。
User getCurrentUser()現在のユーザーを返します。
User getUserById(id)指定されたIDでユーザーを返します。
UserGroup findGroupByName(groupName, workspaceObj)名前で検索された指定されたワークスペースからユーザーグループを返します。
UserGroup[] listCurrentUsersGroups()現在のユーザーのすべてのグループのリストを返します。
UserGroup[] listCurrentUsersGroupsInDomain()現在のユーザーの現在のドメインのすべてのグループのリストを返します。
Workspace domainByName(name)提供された名前でドメインを返します。
Workspace domainBySchema(schema)
Workspace currentDomain()現在のドメインを返します。
removeUserFromGroups(userIds[], groupObj)特定のグループから提供されたIDリストのユーザーを削除します。
addUsersToGroup(userIds[], groupObj)提供されたIDリストから特定のグループにユーザーを追加します。
addUserToGroups(userObj, groupObj[])ユーザーを複数のグループに追加します。
UserGroup[] getGroupsByName(name, workspaceObj)名前の条件に一致する現在のワークスペースから提供された名前のグループのリストを返します。
refreshUsersDomains()
removeUsersFromAllGroups(userIds[])すべてのグループから提供された配列のIDによってユーザーを削除します。
int countDataset(code, filterObj)指定されたデータセットからのレコード数を返します。フィルタリングも可能です。
toString(LocalDateTime)日時を文字列にフォーマットします。
AttributeMember[] listHierarchicalChildMembersForAttribute(dataSetCode, filterObj, attributeId, parentAttributeId)
AttributeMember[] listHierarchicalParentMembersForAttribute(dataSetCode, filterObj, attributeId, parentAttributeId)
Collection<String> getCurrentUserRoles()現在のユーザーの役割のコレクションを作成します。
translate(['':'Name','ja':'JAName'])

def p = loadGeoPoint('ConstructionSites',L_SITE_ID_FIRSTVALUE)

return p.latitude + ', ' + p.longitude


createUser(json)提供されたJSONから新しいユーザーを作成します。
updateUser(id,json)提供されたJSONで特定のIDを選択したユーザーを編集します。
listUsersInGroups(String filter, Collection<String> groupNames, PartData partData)
User getUserByUsername(String username)提供されたユーザー名でユーザーを取得します。
Pageable readDataset Part readDataset(dataSetCode, PartData partData, Filter filter)
setUserParameter(User user, key, value)提供されたユーザーに特定のユーザーのパラメーターを設定します。
assignDashboardToUser(User user, dashboardAlias)提供されたユーザーに特定のユーザーのパラメーターを設定します。
createUserGroup(name, description)提供されたユーザーに特定のユーザーのパラメーターを設定します。
editUserGroup(id, name, description)IDによって提供されたユーザーグループを編集します。
deleteUserGroup(id)IDによって提供されたユーザーグループを削除します。
void deleteUser(User user)提供されたオブジェクトからユーザーを削除します。
addRoleToUser(User user, String roleName)ユーザーに役割を追加します。
URLEncoder.encodeURLの値をエンコード
URLDecoder.decodeURLの値をデコード
List<DataSource> loadDatasourcesForDataset(Integer dataSetId)指定されたデータセットのIDを提供すると、すべてのデータソースのリストを返します。
List<DataSource> loadDatasourcesForDataset(String code)データセットのIDが提供されると、すべてのデータソースのリストを返します。
ImportTable loadImport(Integer dataSourceId)指定されたデータソースに対するインポートテンプレートを返します。
executeImport(DataSource ds)指定されたデータソースのインポートを実行します。
例:
def ds = loadDatasourcesForDataset('TEST_IMPORT')
def i = ds[0]
i.template.source.username = 'username@admin'
i.template.source.password = 'secretpassword'
executeImport(i) 
domainBySchema(String code).appVersion 指定されたドメインのアプリケーションバージョンを返します。
File createPdf(final String templateName, final Map<String, Object> templateParams, final String locale, final MessagesHolder messagesHolder, PageSize pageSize, PageOrientation pageOrientation) MLにはsendEmailと非常に似た新しいcreatePdf関数が追加されました。最初のパラメータとしてFreemarkerテンプレートの名前を受け取ります。


Groovy 関数

tostring, size, length, split, encode, replace, replaceAll, decode, compareto, equals, isempty, each, groupby, sum, avg, plus, contains, get, join, add, put, getvalues, collect, putall, sort, findall, find


Javascript 関数


関数

説明

openBdPopup(url, optional title, optional width, optional height, optional bool buttons)AJAXを使用してウィンドウスコープ内で呼び出された場合、システムポップアップが開きます。